summaryrefslogtreecommitdiffstats
path: root/libavdevice/opengl_enc_shaders.h
diff options
context:
space:
mode:
authorAndreas Cadhalpun <[email protected]>2015-12-19 12:02:56 +0100
committerAndreas Cadhalpun <[email protected]>2015-12-20 14:17:59 +0100
commit1dc135e03d83d14274e3049011396a5bcb36e464 (patch)
tree67c347d98c1b56559f9ce0f7365f55b933ee89bd /libavdevice/opengl_enc_shaders.h
parentf040f3e5d5abfe4f59036e7b671d7b03eda244e7 (diff)
nutdec: reject negative value_len in read_sm_data
If it is negative, it can cause the byte position to move backwards in avio_skip, which in turn makes sm_size negative and thus size larger than the size of the packet buffer, causing invalid writes in avio_read. Also fix potential overflow of avio_tell(bc) + value_len. Reviewed-by: Michael Niedermayer <[email protected]> Signed-off-by: Andreas Cadhalpun <[email protected]> (cherry picked from commit ce10f572c12b0d172c72d31d8c979afce602bf0c) Signed-off-by: Andreas Cadhalpun <[email protected]>
Diffstat (limited to 'libavdevice/opengl_enc_shaders.h')
0 files changed, 0 insertions, 0 deletions