diff options
author | Andreas Cadhalpun <[email protected]> | 2015-04-28 22:37:19 +0200 |
---|---|---|
committer | Michael Niedermayer <[email protected]> | 2015-04-28 23:22:47 +0200 |
commit | e7cb5d41d1d66cf328253a14ccb209d4e34687d4 (patch) | |
tree | 6f459d3b833a203aee962585bbde23812ada2f04 /libavformat/file_open.c | |
parent | 84981c8a87a34c542fbff342c33226dd106e9ed0 (diff) |
nutdec: fix illegal count check in decode_main_header
The existing check has two problems:
1) i + count can overflow, so that the check '< 256' returns true.
2) In the (i == 'N') case occurs a j-- so that the loop runs once more.
This can trigger the assertion 'nut->header_len[0] == 0' or cause
segmentation faults or infinite hangs.
Signed-off-by: Andreas Cadhalpun <[email protected]>
Signed-off-by: Michael Niedermayer <[email protected]>
(cherry picked from commit 7c24ca1bda2d4df1dc9b2b982941be532d60da21)
Signed-off-by: Michael Niedermayer <[email protected]>
Diffstat (limited to 'libavformat/file_open.c')
0 files changed, 0 insertions, 0 deletions