Commit 7956a47
committed
lzma: fix overflow in Bcj2Enc.c
crnlib/lzma/Bcj2Enc.c: In function ‘Bcj2Enc_Encode’:
crnlib/lzma/Bcj2Enc.c:488:20: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
488 | p->temp[i] = src[i];
| ~~~~~~~~~~~^~~~~~~~
In file included from crnlib/lzma/Bcj2Enc.c:14:
crnlib/lzma/Bcj2.h:287:8: note: at offset 8 into destination object ‘temp’ of size 8
287 | Byte temp[8];
| ^1 parent c2eaa81 commit 7956a47
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
489 | | - | |
| 489 | + | |
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
| |||
0 commit comments