summaryrefslogtreecommitdiffstats
path: root/libavcodec/dnxhd_parser.c
diff options
context:
space:
mode:
authorAndreas Cadhalpun <[email protected]>2016-11-08 23:29:28 +0100
committerAndreas Cadhalpun <[email protected]>2016-11-27 00:46:34 +0100
commit71fa32bbb7478a865ba9e955393766f733fdda50 (patch)
treeb35e28ce92f0682b7c84c9c8d4659208b766b8b8 /libavcodec/dnxhd_parser.c
parent8a56b31e7cd1af1e3de59bfe3e79d5d7171404d4 (diff)
icodec: correctly check avio_read return value
It can read less than the requested amount, in which case buf contains uninitialized data, causing problems like segmentation faults later on. Also make sure that image->size is positive, so that it can't match a negative error code. Reviewed-by: Michael Niedermayer <[email protected]> Signed-off-by: Andreas Cadhalpun <[email protected]> (cherry picked from commit 89eb398c7fc4cb9a15e55bdf2ab6435b5332e377) Signed-off-by: Andreas Cadhalpun <[email protected]>
Diffstat (limited to 'libavcodec/dnxhd_parser.c')
0 files changed, 0 insertions, 0 deletions