Closed chibataiki closed 3 years ago
Confirmed, will decide what to do with this (not likely in anything but a malicious file...)
[master c67bbd8] Fix array overflow for headings using roman numerals (Issue #433)
I consolidated everything in format_number, which already handled the overflow. But I also updated format_number to roll the numbers over and to support roman numerals up to 2999 before wrapping.
Hi ,
In function parse_tree() in toc.cxx, there is a out-of-bounds read bug.
If the value of
heading_numbers[i]
equal to 1000, then theheading_numbers[i] / 100
= 10 , but the length of arrayHUNDREDS
andhundreds
is 10, so out of bounds read occurred.Version: 1.9.12 commit [a5b87b9] Env: ubuntu 20.04 x86_64 clang version 11.0.0
reproduce ./configure make ./htmldoc [poc]
oobr_parse_tree.poc.zip
more
gdb