golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
123.35k stars 17.58k forks source link

archive/tar: WriterHeader succeeds for bad headers #15567

Closed dsnet closed 7 years ago

dsnet commented 8 years ago

Using go1.6

Some combination of fields tar.Header are simply impossible to encode for any format. Some example situations that we currently "succeed" in, but should really error on:

gopherbot commented 7 years ago

Change https://golang.org/cl/55571 mentions this issue: archive/tar: reject bad key-value pairs for PAX records