Commit 5e40bf5
Grok Compression
HTJ2K: widen code-block data padding to 16 bytes
The SIMD MagSgn forward reader does 16-byte vector loads that can read
up to 16 bytes past the end of the code-block data, but the buffer was
padded by only 8 bytes, so a small MagSgn segment (scup < 8) over-read
the allocation. Pad by 16 bytes to cover the widest load.
Advisory: GROK-0012 (CWE-125)1 parent 58df402 commit 5e40bf5
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| |||
0 commit comments