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 attachment 689 [details]
The file causing an error
I wonder whether it is a bug or not, since
strings --target=binary passes this test.
Created attachment 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-220.127.116.11.2-alt3.