whoami7 - Manager
:
/
proc
/
self
/
root
/
usr
/
local
/
rvm
/
src
/
rvm
/
patches
/
ruby
/
2.0.0
/
p451
/
Upload File:
files >> //proc/self/root/usr/local/rvm/src/rvm/patches/ruby/2.0.0/p451/libyaml.patch
diff -uw ruby-2.0.0-p451/ext/psych/yaml/config.h ruby-2.1.2/ext/psych/yaml/config.h --- ruby-2.0.0-p451/ext/psych/yaml/config.h 2014-02-15 17:48:09.000000000 +0100 +++ ruby-2.1.2/ext/psych/yaml/config.h 2014-05-04 17:45:33.000000000 +0200 @@ -1,11 +1,10 @@ - #define PACKAGE_NAME "yaml" #define PACKAGE_TARNAME "yaml" -#define PACKAGE_VERSION "0.1.5" -#define PACKAGE_STRING "yaml 0.1.5" +#define PACKAGE_VERSION "0.1.6" +#define PACKAGE_STRING "yaml 0.1.6" #define PACKAGE_BUGREPORT "http://pyyaml.org/newticket?component libyaml" #define PACKAGE_URL "" #define YAML_VERSION_MAJOR 0 #define YAML_VERSION_MINOR 1 -#define YAML_VERSION_PATCH 5 -#define YAML_VERSION_STRING "0.1.5" +#define YAML_VERSION_PATCH 6 +#define YAML_VERSION_STRING "0.1.6" diff -uw ruby-2.0.0-p451/ext/psych/yaml/scanner.c ruby-2.1.2/ext/psych/yaml/scanner.c --- ruby-2.0.0-p451/ext/psych/yaml/scanner.c 2014-02-21 12:55:57.000000000 +0100 +++ ruby-2.1.2/ext/psych/yaml/scanner.c 2014-05-04 17:45:33.000000000 +0200 @@ -2629,6 +2629,9 @@ /* Check if it is a URI-escape sequence. */ if (CHECK(parser->buffer, '%')) { + if (!STRING_EXTEND(parser, string)) + goto error; + if (!yaml_parser_scan_uri_escapes(parser, directive, start_mark, &string)) goto error; } diff -uw ruby-2.0.0-p451/ext/psych/yaml/yaml.h ruby-2.1.2/ext/psych/yaml/yaml.h --- ruby-2.0.0-p451/ext/psych/yaml/yaml.h 2012-12-05 05:08:17.000000000 +0100 +++ ruby-2.1.2/ext/psych/yaml/yaml.h 2013-09-20 16:51:35.000000000 +0200 @@ -1089,7 +1089,7 @@ yaml_error_type_t error; /** Error description. */ const char *problem; - /** The byte about which the problem occured. */ + /** The byte about which the problem occurred. */ size_t problem_offset; /** The problematic value (@c -1 is none). */ int problem_value; @@ -1851,7 +1851,7 @@ yaml_emitter_set_canonical(yaml_emitter_t *emitter, int canonical); /** - * Set the intendation increment. + * Set the indentation increment. * * @param[in,out] emitter An emitter object. * @param[in] indent The indentation increment (1 < . < 10). diff -uw ruby-2.0.0-p451/ext/psych/yaml/yaml_private.h ruby-2.1.2/ext/psych/yaml/yaml_private.h --- ruby-2.0.0-p451/ext/psych/yaml/yaml_private.h 2014-02-21 12:55:57.000000000 +0100 +++ ruby-2.1.2/ext/psych/yaml/yaml_private.h 2014-05-04 17:45:33.000000000 +0200 @@ -146,9 +146,12 @@ (string).start = (string).pointer = (string).end = 0) #define STRING_EXTEND(context,string) \ - (((string).pointer+5 < (string).end) \ + ((((string).pointer+5 < (string).end) \ || yaml_string_extend(&(string).start, \ - &(string).pointer, &(string).end)) + &(string).pointer, &(string).end)) ? \ + 1 : \ + ((context)->error = YAML_MEMORY_ERROR, \ + 0)) #define CLEAR(context,string) \ ((string).pointer = (string).start, \
Copyright ©2021 || Defacer Indonesia