Mixing unsigned and signed often leads to unexpected arithmetic results. Fixes: out of array write Found-by: <durandal_1707> Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> --- libswscale/swscale_internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h index e6e7b934b68..708facba676 100644 --- a/libswscale/swscale_internal.h +++ b/libswscale/swscale_internal.h @@ -311,8 +311,8 @@ typedef struct SwsContext { int nb_slice_ctx; // values passed to current sws_receive_slice() call - unsigned int dst_slice_start; - unsigned int dst_slice_height; + int dst_slice_start; + int dst_slice_height; /** * Note that src, dst, srcStride, dstStride will be copied in the -- 2.17.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".