diff options
author | Oneric <oneric@oneric.stub> | 2020-10-18 22:38:15 +0200 |
---|---|---|
committer | Oleg Oshmyan <chortos@inbox.lv> | 2020-10-27 01:03:04 +0200 |
commit | 68a77d1f50ce40aca6e034b5fb46a54321f9fb77 (patch) | |
tree | 5f3b603578a51e6ade00d532e9baad8852b2b0cf /libass/ass_bitmap.h | |
parent | 910211f1c0078e37546f73e95306724358b89be2 (diff) | |
download | libass-68a77d1f50ce40aca6e034b5fb46a54321f9fb77.tar.bz2 libass-68a77d1f50ce40aca6e034b5fb46a54321f9fb77.tar.xz |
Handle realloc fail in process_fonts_line
In case of files whose size is close to or exceeds SIZE_MAX it was
possible to trigger an overflow while calculating new_size.
Although ASS_REALLOC_ARRAY already deals with the most problematic case
of an overflow yielding new_size == 0, continuing will only yield
garbage fontdata at the end, so we might as well abort right away.
Unrelated: correct return code for mangled lines
Diffstat (limited to 'libass/ass_bitmap.h')
0 files changed, 0 insertions, 0 deletions