cavaliergopher / rpm

A Go implementation of the RPM file format
BSD 3-Clause "New" or "Revised" License
170 stars 44 forks source link

Use io.ReadFull to read headers/indexes #33

Open cclerget opened 9 months ago

cclerget commented 9 months ago

Depending of io.Reader type or of the context, like reading from a stream, the use of reader.Read might return less bytes than requested by headers/indexes structures causing an arbitrary shift in the header/index read logic

cclerget commented 7 months ago

@cavaliercoder ^^