summaryrefslogtreecommitdiffstats
path: root/tests/api/api-band-test.c
diff options
context:
space:
mode:
authorAndreas Cadhalpun <[email protected]>2015-11-06 21:04:34 +0100
committerAndreas Cadhalpun <[email protected]>2015-11-07 13:13:35 +0100
commitdb374790c75fa4ef947abcb5019fcf21d0b2de85 (patch)
tree48e4ed4cb962d7dab3bc63644d6452d7fbc60006 /tests/api/api-band-test.c
parent7f7fa90f7b7fccecff98bb1cef307e093dac1d29 (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]>
Diffstat (limited to 'tests/api/api-band-test.c')
0 files changed, 0 insertions, 0 deletions