mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Merge commit '1e763454322f7fbc7799f6009bf2e11d7a3b9821'
* commit '1e763454322f7fbc7799f6009bf2e11d7a3b9821': png: improve signature check Conflicts: libavcodec/pngdec.c See:8a08503b78
See:0a3589bf2f
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
cd960c8a4f
@ -1118,7 +1118,7 @@ static int decode_frame_png(AVCodecContext *avctx,
|
|||||||
sig = bytestream2_get_be64(&s->gb);
|
sig = bytestream2_get_be64(&s->gb);
|
||||||
if (sig != PNGSIG &&
|
if (sig != PNGSIG &&
|
||||||
sig != MNGSIG) {
|
sig != MNGSIG) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "Missing png signature\n");
|
av_log(avctx, AV_LOG_ERROR, "Invalid PNG signature (%d).\n", buf_size);
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user