aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/qsv_internal.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-12 13:46:25 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-12 23:35:01 +0200
commit78169f397dad3d9af9cd750441e11b7e201e3949 (patch)
treed5c5f654c9d27a5a6c95bec07d545d5ffe23f2a1 /libavcodec/qsv_internal.h
parent197f7e914bc2a7113388156df5b0e617a4a3ba32 (diff)
downloadffmpeg-78169f397dad3d9af9cd750441e11b7e201e3949.tar.gz
avformat/wtvdec: Fix signed integer overflow
Happens when length > INT_MAX / 2; use unsigned for the computation, but restrict the value to INT_MAX, because avio_get_str16le() accepts an int as buf_len argument. Notice that it can happen that the string read by avio_get_str16le() is truncated in this case. Reviewed-by: Peter Ross <pross@xvid.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/qsv_internal.h')
0 files changed, 0 insertions, 0 deletions