You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
libpostproc: fix out of array accesses detected by AddressSanitizer.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -3549,7 +3549,7 @@ static void RENAME(postProcess)(const uint8_t src[], int srcStride, uint8_t dst[
|
|||||||
{
|
{
|
||||||
RENAME(tempNoiseReducer)(dstBlock-8, stride,
|
RENAME(tempNoiseReducer)(dstBlock-8, stride,
|
||||||
c.tempBlurred[isColor] + y*dstStride + x,
|
c.tempBlurred[isColor] + y*dstStride + x,
|
||||||
c.tempBlurredPast[isColor] + (y>>3)*256 + (x>>3),
|
c.tempBlurredPast[isColor] + (y>>3)*256 + (x>>3) + 256,
|
||||||
c.ppMode.maxTmpNoise);
|
c.ppMode.maxTmpNoise);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3571,7 +3571,7 @@ static void RENAME(postProcess)(const uint8_t src[], int srcStride, uint8_t dst[
|
|||||||
if((mode & TEMP_NOISE_FILTER)){
|
if((mode & TEMP_NOISE_FILTER)){
|
||||||
RENAME(tempNoiseReducer)(dstBlock-8, dstStride,
|
RENAME(tempNoiseReducer)(dstBlock-8, dstStride,
|
||||||
c.tempBlurred[isColor] + y*dstStride + x,
|
c.tempBlurred[isColor] + y*dstStride + x,
|
||||||
c.tempBlurredPast[isColor] + (y>>3)*256 + (x>>3),
|
c.tempBlurredPast[isColor] + (y>>3)*256 + (x>>3) + 256,
|
||||||
c.ppMode.maxTmpNoise);
|
c.ppMode.maxTmpNoise);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user