Commit b129b7c
authored
Reject negative PAX size values when reading TAR headers (#128368)
This change adds a validation check while applying extended attributes
in TarHeader.Read.cs so that a negative size value from PAX metadata now
throws InvalidDataException instead of being accepted.1 parent 3366f6a commit b129b7c
1 file changed
Lines changed: 5 additions & 0 deletions
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
154 | 159 | | |
155 | 160 | | |
156 | 161 | | |
| |||
0 commit comments