ALT Linux Bugzilla – #5871
strings produces "out of memory" error on certain input
Last modified: 2005-07-13 15:47:18
You need to
before you can comment on or make changes to this bug.
When run on a certain file (see attachment), strings exits with an error:
strings: out of memory allocating 1365836033 bytes after a total of 0 bytes
Created an attachment (id=689) [details]
The file causing an error
I wonder whether it is a bug or not, since
strings --target=binary passes this test.
Created an attachment (id=693) [details]
Another sample file with large section size
Specially crafted sample file with enormously large section size.
The first file isn't an ELF file at all, it is a binary state dump produced by
I think it's still a problem. The utility should fall back to --target=binary
mode if sanity checks on the object format fail.
No, this utility should not fall back to --target=binary.
The OOM handling fixed in binutils-22.214.171.124.2-alt3.