-
Notifications
You must be signed in to change notification settings - Fork 17.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debug/macho: oom in NewFatFile #52523
Comments
Change https://go.dev/cl/413874 mentions this issue: |
I am not sure this is resolved When I run https://go.dev/play/p/nnJjDGt5zwW?v=gotip |
Fair point. The earlier CL saved some of the allocated memory but not all. Sent another CL. |
Change https://go.dev/cl/425114 mentions this issue: |
If narch is very large we would allocate a lot of memory for seenArches. In practice we aren't going to see many different architectures so don't bother to specify a size for the seenArches map. No debug/macho test case because the problem can only happen for invalid data. Let the fuzzer find cases like this. For #47653 For #52523 Change-Id: I5a3b0e3aa6172ddffd6f44d9ae513c39a00d8764 Reviewed-on: https://go-review.googlesource.com/c/go/+/425114 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: David Chase <drchase@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Ian Lance Taylor <iant@golang.org> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Joseph Tsai <joetsai@digital-static.net>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Run https://go.dev/play/p/szwoyohPSJN
What did you expect to see?
The program finishing and printing somme dummy data
What did you see instead?
Only
Heap profiling shows 8Gbyte allocation including 5 from debug/macho.NewFatFile /usr/local/go/src/debug/macho/fat.go:88
Found by https://github.com/catenacyber/ngolo-fuzzing on oss-fuzz
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=46182
cc @ianlancetaylor as you fixed the latest oom
The text was updated successfully, but these errors were encountered: