mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-06-06 05:38:44 +08:00
12 lines
528 B
Diff
12 lines
528 B
Diff
--- imgutils.ori.c 2024-10-24 18:59:25.612400714 +0800
|
|
+++ imgutils.c 2024-10-24 19:01:00.905336596 +0800
|
|
@@ -298,7 +298,7 @@
|
|
stride = 8LL*w;
|
|
stride += 128*8;
|
|
|
|
- if (w==0 || h==0 || w > INT32_MAX || h > INT32_MAX || stride >= INT_MAX || stride*(h + 128ULL) >= INT_MAX) {
|
|
+ if (w==0 || h==0 || w > INT32_MAX || h > INT32_MAX || stride >= INT_MAX || stride*(h + 128ULL) >= INT64_MAX) {
|
|
av_log(&imgutils, AV_LOG_ERROR, "Picture size %ux%u is invalid\n", w, h);
|
|
return AVERROR(EINVAL);
|
|
}
|