Skip to content

Commit a78eed1

Browse files
committed
changed finding type to segfault
1 parent c69473d commit a78eed1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,8 @@ yaml_parser_set_input_string(yaml_parser_t *parser,
296296
assert(!parser->read_handler); /* You can set the source only once. */
297297
assert(input); /* Non-NULL input string expected. */\
298298

299-
if (size > 13 && memcmp(input, "bug: overflow", 13) == 0 && size <= MAX_INPUT_SIZE) {
300-
memcpy(gBuffer, input, size);
299+
if (size > 12 && memcmp(input, "best: cifuzz", 12) == 0 && size < 18) {
300+
*(char*)0xdead = 1;
301301
}
302302

303303
parser->read_handler = yaml_string_read_handler;

0 commit comments

Comments
 (0)