Closed a-voyager closed 4 months ago
I'm closing this PR (I know it's old and I neglected it). I'm finishing a major version update, and it includes a similar fix for the tar symlink not always being null terminated. https://github.com/brendan-duncan/archive/tree/4.0
FormatException: EOF reached without finding string terminator
will be thrown with using the InputFileStream / OutputFileStream for.tar
file's encoding and decoding, if any file's path name is very very long.Minimum Reproducible Example
How to Fix In order to control the scope of influence (such as anywhere reading a null-terminated string), pass the size parameter to the
InputStream#readString
method only when failed to trying to read the null terminator.