Skip to content
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

ASAN failures in various file processing commands #503

Open
edre opened this issue May 31, 2024 · 2 comments
Open

ASAN failures in various file processing commands #503

edre opened this issue May 31, 2024 · 2 comments

Comments

@edre
Copy link
Contributor

edre commented May 31, 2024

Found via fuzzing. I have a patch that makes it easier to fuzz arguments to toybox commands. I can post it to the mailing list if it sounds generally useful.

heap-buffer-overflow:

  • toybox sed /[[
  • echo -ne '\0' | toybox sed hg
  • echo -e '\n\0aaaaaaa\nx' | toybox grep -B2 x

Segfault:

  • echo -ne '\x7fELF\00000000000000000000000000000000000000000000' > elf; toybox file elf
  • echo if > broken.sh; toybox sh -c '. broken.sh'
@landley
Copy link
Owner

landley commented Jun 1, 2024

I'm collecting them here, but I keep having to sign house sale closing paperwork (a notary is coming by on sunday with more) and I'm sort of curled up into a ball at the moment. Bit behind on stuff, sorry...

@enh-google
Copy link
Collaborator

patch for the file(1) crash sent to the mailing list: http://lists.landley.net/pipermail/toybox-landley.net/2024-August/030481.html

landley pushed a commit that referenced this issue Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants