on master help sign in
Update libyaml #110
9583629Michael Snoyman
libyaml/scanner.c+5
@@ -3284,6 +3284,11 @@ yaml_parser_scan_flow_scalar(yaml_parser_t *parser, yaml_token_t *token,
3284
3284
3285 /* Check if we are at the end of the scalar. */
3285 /* Check if we are at the end of the scalar. */
3286
3286
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;
3287 if (CHECK(parser->buffer, single ? '\'' : '"'))
3292 if (CHECK(parser->buffer, single ? '\'' : '"'))
3288 break;
3293 break;
3289
3294
libyaml/yaml.h+1−2
@@ -26,10 +26,9 @@ extern "C" {
26
26
27/** The public API declaration. */
27/** The public API declaration. */
28
28
29−/* __MINGW32__ definition added for Haskell yaml package */
30#if defined(__MINGW32__)
29#if defined(__MINGW32__)
31# define YAML_DECLARE(type) type
30# define YAML_DECLARE(type) type
32−#elif _WIN32
31+#elif defined(WIN32)
33# if defined(YAML_DECLARE_STATIC)
32# if defined(YAML_DECLARE_STATIC)
34# define YAML_DECLARE(type) type
33# define YAML_DECLARE(type) type
35# elif defined(YAML_DECLARE_EXPORT)
34# elif defined(YAML_DECLARE_EXPORT)
vendor/libyaml+1−1

Submodule changed.