summaryrefslogtreecommitdiffstats
path: root/libass/ass_parse.h
diff options
context:
space:
mode:
authorOleg Oshmyan <chortos@inbox.lv>2017-02-04 01:05:29 +0200
committerOleg Oshmyan <chortos@inbox.lv>2020-10-18 05:01:31 +0300
commitb06e2975240de9aca03dd6af5c45bee964678ec4 (patch)
treeb4097e38b70f10181d03143f92cfa9d4231efb0b /libass/ass_parse.h
parent84928b1fb100004686ac61851720da9247cad34b (diff)
downloadlibass-b06e2975240de9aca03dd6af5c45bee964678ec4.tar.bz2
libass-b06e2975240de9aca03dd6af5c45bee964678ec4.tar.xz
Fix integer overflow while parsing \fad(arg, large negative number)
If t3 is initially negative, it should be set to a value larger than the duration of the event. This triggers the `now < t3` branch in interpolate_alpha (if none of the earlier branches are taken). The same effect can be achieved by setting t3 to the duration itself. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=531. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3905. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11736.
Diffstat (limited to 'libass/ass_parse.h')
0 files changed, 0 insertions, 0 deletions