Hey, whatever works. I rewrote more, and edited some of my changes down
again..
It's not even correct in my version - I check the ASCII header _first_, so
by the time it looks at the binary one, it already knows it's not ascii.
The problematic case is actually the other way around: my
"parse_ascii_sha1_header()" isn't strict enough.
Or, more likely, the parse_sha1_header() function should just be changed
to check the binary format first (and then add your comment about why that
is safe).
No. The very first byte can have the 0x80 end marker, when the size was
between 0..15.
Yeah, never mind. That function didn't actually need the hdrlen, it only
cared about the SHA1.
Linus
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html