diff options
author | Andreas Cadhalpun <[email protected]> | 2015-11-06 21:04:34 +0100 |
---|---|---|
committer | Andreas Cadhalpun <[email protected]> | 2015-11-26 01:38:17 +0100 |
commit | 79e477823f7fc42912b21991e11fbf4f8966464d (patch) | |
tree | 2c332332360a64e31c95eadc441a4ebe3e8c9f6d /libavcodec/takdec.c | |
parent | 2ccab79595ae6a7653e503c82d5efc98a10f2be9 (diff) |
jvdec: avoid unsigned overflow in comparison
The return type of strlen is size_t, i.e. unsigned, so if pd->buf_size
is 3, the right side overflows leading to a wrong result of the
comparison and subsequently a heap buffer overflow.
Reviewed-by: Paul B Mahol <[email protected]>
Signed-off-by: Andreas Cadhalpun <[email protected]>
(cherry picked from commit db374790c75fa4ef947abcb5019fcf21d0b2de85)
Signed-off-by: Andreas Cadhalpun <[email protected]>
Diffstat (limited to 'libavcodec/takdec.c')
0 files changed, 0 insertions, 0 deletions