-
-
Notifications
You must be signed in to change notification settings - Fork 31k
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
Tokenizer crash when redirecting input to stdin #94360
Comments
This is file name for input, file is included in archive input.tar.gz (attached) also with GDB commands to use, such as
|
Can you copy and paste the GDB backtrace rather than a screenshot? |
|
@mimicria My bad, I've already found that it's enough to install https://github.com/jfoote/exploitable and feed the attached That's why I deleted my comment hoping that nobody've seen it. |
I currently have no access to a Linix machine so I can't create a debug build to get a nice stack trace from gdb. |
I've reduced the reproducer to Interestingly, the very similar Also note that this only appears to reproduce with For a self-contained reproducer that still requires Bash: #!/bin/bash
./python -c 'import sys; sys.stdout.buffer.write(b"#coding:latin1\n#\x00\n#\x00\n\xff a\n")' > bad_script
./python < bad_script Hopefully this is helpful, but this is about all I can contribute here. |
… syntax errors from stdin Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
… syntax errors from stdin (pythonGH-94386) * pythongh-94360: Fix a tokenizer crash when reading encoded files with syntax errors from stdin Signed-off-by: Pablo Galindo <pablogsal@gmail.com> * nitty nit Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 36fcde6) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
…x errors from stdin (GH-94386) * gh-94360: Fix a tokenizer crash when reading encoded files with syntax errors from stdin Signed-off-by: Pablo Galindo <pablogsal@gmail.com> * nitty nit Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 36fcde6) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
…es with syntax errors from stdin (pythonGH-94386) * pythongh-94360: Fix a tokenizer crash when reading encoded files with syntax errors from stdin Signed-off-by: Pablo Galindo <pablogsal@gmail.com> * nitty nit Co-authored-by: Łukasz Langa <lukasz@langa.pl>. (cherry picked from commit 36fcde6) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Hello @mimicria, it looks like you are (or were) fuzzing this repository, and you’ve found some interesting bugs. 🥇 I would like to create a Python based test case reduction test suite that contains fuzzer generated outputs, and benchmark automatic test case reducers how they perform on Python inputs. It looks like to me you have opened this issue with the already reduced input that caused malfunction. Is it possible that you still have the output of the fuzzer, which is free of any reduction? Thanks in advance, |
Hello, Daniel! |
Thank you @mimicria, I'll try to use that artifact.
|
Hi!
We were doing some fuzzing using AFL for latest version 3.10.5, and we found an interesting issue.
There is some crash that may be exploitable. I check latest version from git and crash was reproduced.
So input file attached with screenshots
input.tar.gz
The text was updated successfully, but these errors were encountered: