Commit f1f18d9
committed
fix(cpio): fixed checksum calculation to handle 4 byte overflows
Checksum stored in the header is always 4 bytes in length, so when we calculate
the checksum, we need to sure that we only consider the 4bytes part and ommit
the overflown part.1 parent c040df9 commit f1f18d9
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
371 | | - | |
372 | | - | |
| 371 | + | |
373 | 372 | | |
374 | 373 | | |
375 | 374 | | |
| |||
0 commit comments