go-unarr icon indicating copy to clipboard operation
go-unarr copied to clipboard

NewArchiveFromReader OOM

Open badandboy opened this issue 1 month ago • 1 comments

NewArchiveFromReader use io.ReadAll will cause oom

badandboy avatar Nov 26 '25 03:11 badandboy

Sure, it will cause OOM if the file is large and the OS does not have enough memory. That is just a convenient wrapper that reads from the reader and uses NewArchiveFromMemory. The only way to avoid this is to use NewArchive with a file.

gen2brain avatar Nov 26 '25 07:11 gen2brain