out of bounds read
parse_mapping
allocates event.data.scalar.length
bytes for key
, so key
is not properly zero-terminated. It might happen (and usually is) to be zero terminated by accident, but on a glibc system I get e.g.
$ make
cc -Os -o yx yx.c -lyaml
chmod +x yx
$ ./yx a 1
a:
- b:
b��U