mirror of https://github.com/FFmpeg/FFmpeg.git
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 <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>pull/240/head
parent
c82b8ef0e4
commit
89eb398c7f
1 changed files with 6 additions and 2 deletions
Loading…
Reference in new issue