libyaml.patch 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. diff -uw ruby-2.1.1/ext/psych/yaml/config.h ruby-2.1.2/ext/psych/yaml/config.h
  2. --- ruby-2.1.1/ext/psych/yaml/config.h 2014-02-24 05:24:15.000000000 +0100
  3. +++ ruby-2.1.2/ext/psych/yaml/config.h 2014-05-04 17:45:33.000000000 +0200
  4. @@ -1,11 +1,10 @@
  5. -
  6. #define PACKAGE_NAME "yaml"
  7. #define PACKAGE_TARNAME "yaml"
  8. -#define PACKAGE_VERSION "0.1.5"
  9. -#define PACKAGE_STRING "yaml 0.1.5"
  10. +#define PACKAGE_VERSION "0.1.6"
  11. +#define PACKAGE_STRING "yaml 0.1.6"
  12. #define PACKAGE_BUGREPORT "http://pyyaml.org/newticket?component libyaml"
  13. #define PACKAGE_URL ""
  14. #define YAML_VERSION_MAJOR 0
  15. #define YAML_VERSION_MINOR 1
  16. -#define YAML_VERSION_PATCH 5
  17. -#define YAML_VERSION_STRING "0.1.5"
  18. +#define YAML_VERSION_PATCH 6
  19. +#define YAML_VERSION_STRING "0.1.6"
  20. diff -uw ruby-2.1.1/ext/psych/yaml/scanner.c ruby-2.1.2/ext/psych/yaml/scanner.c
  21. --- ruby-2.1.1/ext/psych/yaml/scanner.c 2014-02-24 05:24:15.000000000 +0100
  22. +++ ruby-2.1.2/ext/psych/yaml/scanner.c 2014-05-04 17:45:33.000000000 +0200
  23. @@ -2629,6 +2629,9 @@
  24. /* Check if it is a URI-escape sequence. */
  25. if (CHECK(parser->buffer, '%')) {
  26. + if (!STRING_EXTEND(parser, string))
  27. + goto error;
  28. +
  29. if (!yaml_parser_scan_uri_escapes(parser,
  30. directive, start_mark, &string)) goto error;
  31. }
  32. diff -uw ruby-2.1.1/ext/psych/yaml/yaml_private.h ruby-2.1.2/ext/psych/yaml/yaml_private.h
  33. --- ruby-2.1.1/ext/psych/yaml/yaml_private.h 2014-02-24 05:24:15.000000000 +0100
  34. +++ ruby-2.1.2/ext/psych/yaml/yaml_private.h 2014-05-04 17:45:33.000000000 +0200
  35. @@ -146,9 +146,12 @@
  36. (string).start = (string).pointer = (string).end = 0)
  37. #define STRING_EXTEND(context,string) \
  38. - (((string).pointer+5 < (string).end) \
  39. + ((((string).pointer+5 < (string).end) \
  40. || yaml_string_extend(&(string).start, \
  41. - &(string).pointer, &(string).end))
  42. + &(string).pointer, &(string).end)) ? \
  43. + 1 : \
  44. + ((context)->error = YAML_MEMORY_ERROR, \
  45. + 0))
  46. #define CLEAR(context,string) \
  47. ((string).pointer = (string).start, \