@@ -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