aboutsummaryrefslogtreecommitdiffstats
path: root/doc/rate_distortion.txt
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-08-30 13:20:26 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-05-08 13:37:40 +0200
commit7c243eece3427bc5a6d54657d488d5c0c2985a8e (patch)
tree29c58d853ec2e295e39b8ff4e1fa359b9bf5bd99 /doc/rate_distortion.txt
parente38adc197ed1ef3423329035a29292b17d319a79 (diff)
downloadffmpeg-7c243eece3427bc5a6d54657d488d5c0c2985a8e.tar.gz
avformat/matroskadec: Sanitize SeekHead entries
A Seek element in a Matroska SeekHead should contain a SeekID and a SeekPosition element and upon reading, they should be sanitized: Given that IDs are restricted to 32 bit, longer SeekIDs should be treated as invalid. Instead currently the lower 32 bits have been used. For SeekPosition, no checks were performed for the element to be present and if present, whether it was excessively large (i.e. the absolute file position described by it exceeding INT64_MAX). The SeekPosition element had a default value of -1 which means that a check seems to have been intended; but it was not implemented. This commit adds a check for overflow to the calculation of the absolute file position of the referenced level 1 elements. Using -1 (i.e. UINT64_MAX) as default value for SeekPosition implies that a Seek element without SeekPosition will run afoul of this check. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'doc/rate_distortion.txt')
0 files changed, 0 insertions, 0 deletions