Closed pps83 closed 1 year ago
VS2022 also issues these errors:
C:\work-pps\TurboPFor\transpose.c(682): error C4789: buffer 'ov' of size 64 bytes will be overrun; 32 bytes will be written starting at offset 96
C:\work-pps\TurboPFor\transpose.c(682): error C4789: buffer 'ov' of size 64 bytes will be overrun; 32 bytes will be written starting at offset 96
C:\work-pps\TurboPFor\transpose.c(682): error C4789: buffer 'ov' of size 64 bytes will be overrun; 32 bytes will be written starting at offset 96
C:\work-pps\TurboPFor\transpose.c(681): error C4789: buffer 'ov' of size 64 bytes will be overrun; 32 bytes will be written starting at offset 64
C:\work-pps\TurboPFor\transpose.c(681): error C4789: buffer 'ov' of size 64 bytes will be overrun; 32 bytes will be written starting at offset 64
C:\work-pps\TurboPFor\transpose.c(681): error C4789: buffer 'ov' of size 64 bytes will be overrun; 32 bytes will be written starting at offset 64
C:\work-pps\TurboPFor\transpose.c(734): error C4789: buffer 'ov' of size 64 bytes will be overrun; 32 bytes will be written starting at offset 96
C:\work-pps\TurboPFor\transpose.c(734): error C4789: buffer 'ov' of size 64 bytes will be overrun; 32 bytes will be written starting at offset 64
C:\work-pps\TurboPFor\transpose.c(734): error C4789: buffer 'ov' of size 64 bytes will be overrun; 32 bytes will be written starting at offset 96
C:\work-pps\TurboPFor\transpose.c(734): error C4789: buffer 'ov' of size 64 bytes will be overrun; 32 bytes will be written starting at offset 64
C:\work-pps\TurboPFor\transpose.c(1069): error C4789: buffer 'ov' of size 32 bytes will be overrun; 16 bytes will be written starting at offset 48
C:\work-pps\TurboPFor\transpose.c(1069): error C4789: buffer 'ov' of size 32 bytes will be overrun; 16 bytes will be written starting at offset 48
C:\work-pps\TurboPFor\transpose.c(1069): error C4789: buffer 'ov' of size 32 bytes will be overrun; 16 bytes will be written starting at offset 48
C:\work-pps\TurboPFor\transpose.c(1068): error C4789: buffer 'ov' of size 32 bytes will be overrun; 16 bytes will be written starting at offset 32
C:\work-pps\TurboPFor\transpose.c(1068): error C4789: buffer 'ov' of size 32 bytes will be overrun; 16 bytes will be written starting at offset 32
C:\work-pps\TurboPFor\transpose.c(1068): error C4789: buffer 'ov' of size 32 bytes will be overrun; 16 bytes will be written starting at offset 32
C:\work-pps\TurboPFor\transpose.c(1120): error C4789: buffer 'ov' of size 32 bytes will be overrun; 16 bytes will be written starting at offset 48
C:\work-pps\TurboPFor\transpose.c(1120): error C4789: buffer 'ov' of size 32 bytes will be overrun; 16 bytes will be written starting at offset 48
C:\work-pps\TurboPFor\transpose.c(1119): error C4789: buffer 'ov' of size 32 bytes will be overrun; 16 bytes will be written starting at offset 32
C:\work-pps\TurboPFor\transpose.c(1119): error C4789: buffer 'ov' of size 32 bytes will be overrun; 16 bytes will be written starting at offset 32
C:\work-pps\TurboPFor\transpose.c(1113): error C4789: buffer 'ov' of size 32 bytes will be overrun; 16 bytes will be written starting at offset 48
C:\work-pps\TurboPFor\transpose.c(1112): error C4789: buffer 'ov' of size 32 bytes will be overrun; 16 bytes will be written starting at offset 32
Thank you. I've made the changes. I've activated the warnings and it seems there are no more important warnings.
When compiling with clang I get tons of warnings accessing elements past the end of the array bounds inside transcode.c
Looking into specifics of the warnings, I think all of them are legit bugs that should be addressed. All of the warnings are related to
ov
variables declared on lines 603, 731, 849, 1107. For example, when compiling AVX version I get these warnings: