Fix std/cbor meta.ri decoding F8XX for small XX

Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=24819
This commit is contained in:
Nigel Tao committed 2020-08-12 23:45:44 +10:00
1 parent 2de1dfec97
commit 16fadb25cf
2 files changed
+9

No files matched your search

+4
View File
@@ -623,6 +623,10 @@ pub func decoder.decode_tokens?(dst: base.token_writer, src: base.io_reader, wor
} else if c_minor == 0x18 {
if string_length < 0x18 {
if not args.src.can_undo_byte() {
return "#internal error: inconsistent I/O"
}
args.src.undo_byte!()
break.goto_fail
}
args.dst.write_simple_token_fast!(