Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix heap overflow in DDS input (#3542)
Reading uncompressed scanlines would copy 4 bytes from each pixel into an int and then decode the bits, incrementing where it was reading from by Bpp bytes each time. But when Bpp == 3, the last pixel of every row would therefore read an extra byte past the end of the heap storage. Allocation padding would in practice keep it from crashing, and that meaningless extra byte was not used in the decode because it knew it only needed the first 3 of the integer. But found by address sanitizer!
- Loading branch information