Re: [FFmpeg-devel] [PATCH] avutil/imgutils: use INT64_MAX for alloc buffer check and image size check

2021-09-14 Thread James Almer
On 9/14/2021 8:19 AM, Steven Liu wrote: check alloc buffer size limit from INT_MAX to INT64_MAX check stride and stride*(uint64_t)(h+128) look into the Picture size condition using INT_MAX is smaller, so make it to INT64_MAX maybe large enough for Picture. Signed-off-by: Steven Liu --- libavu

[FFmpeg-devel] [PATCH] avutil/imgutils: use INT64_MAX for alloc buffer check and image size check

2021-09-14 Thread Steven Liu
check alloc buffer size limit from INT_MAX to INT64_MAX check stride and stride*(uint64_t)(h+128) look into the Picture size condition using INT_MAX is smaller, so make it to INT64_MAX maybe large enough for Picture. Signed-off-by: Steven Liu --- libavutil/imgutils.c | 2 +- libavutil/imgutils.h