diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-12-06 01:45:14 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-12-08 18:54:20 +0100 |
commit | b8fe417c1937436ec978dbc20e747f0e30453b81 (patch) | |
tree | 329ca074e432860d06d3bc7ade3e7123c244d0cb /libavformat/nutdec.c | |
parent | fa4532a1f767c092656836de62797d71ff42cde0 (diff) | |
download | ffmpeg-b8fe417c1937436ec978dbc20e747f0e30453b81.tar.gz |
avformat/framecrcenc: Don't read after the end of side-data
Nothing guarantees that the size of side data containing a palette
is actually divisible by four (although it should be); but for
big-endian systems, an algorithm is used that presupposed this.
So switch to an algorithm that does not overread: It processes
four bytes at a time, but only if all of them are contained in
the side data.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/nutdec.c')
0 files changed, 0 insertions, 0 deletions