Commit dd8f50c
authored
unzip: Unify EOF handling (libarchive#2175)
If EOF is encountered while reading the new filename after choosing 'r',
avoid out of boundary access and usage of undefined memory content by
treating it the same way as if the question itself was not answered.1 parent 6ff1cd1 commit dd8f50c
1 file changed
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
484 | 484 | | |
485 | 485 | | |
486 | 486 | | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
| 487 | + | |
| 488 | + | |
494 | 489 | | |
495 | 490 | | |
496 | 491 | | |
| |||
512 | 507 | | |
513 | 508 | | |
514 | 509 | | |
| 510 | + | |
| 511 | + | |
515 | 512 | | |
516 | 513 | | |
517 | 514 | | |
518 | 515 | | |
519 | 516 | | |
520 | 517 | | |
521 | 518 | | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
522 | 525 | | |
523 | 526 | | |
524 | 527 | | |
| |||
0 commit comments