on master help sign in
Update libyaml #110
commit9583629322ab7c8ccf634ff0b073dadbc75b15e4 authorMichael Snoyman <michael@snoyman.com> dateFri 30 Jun 2017, 07:03 (9 years ago) parent2a9c523
3 files changed+7−3
libyaml/scanner.c+5 libyaml/yaml.h+1−2 vendor/libyaml+1−1
libyaml/scanner.c+5
@@ -3284,6 +3284,11 @@ yaml_parser_scan_flow_scalar(yaml_parser_t *parser, yaml_token_t *token,
32843284
32853285 /* Check if we are at the end of the scalar. */
32863286
3287+ /* Fix for crash unitialized value crash
3288+ * Credit for the bug and input is to OSS Fuzz
3289+ * Credit for the fix to Alex Gaynor
3290+ */
3291+ if (!CACHE(parser, 1)) goto error;
32873292 if (CHECK(parser->buffer, single ? '\'' : '"'))
32883293 break;
32893294
libyaml/yaml.h+1−2
@@ -26,10 +26,9 @@ extern "C" {
2626
2727/** The public API declaration. */
2828
29−/* __MINGW32__ definition added for Haskell yaml package */
3029#if defined(__MINGW32__)
3130# define YAML_DECLARE(type) type
32−#elif _WIN32
31+#elif defined(WIN32)
3332# if defined(YAML_DECLARE_STATIC)
3433# define YAML_DECLARE(type) type
3534# elif defined(YAML_DECLARE_EXPORT)
vendor/libyaml+1−1

Submodule changed.