-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
-P </dev/urandom should be restricted (crash every rnd time) #594
Comments
Please print the only cmd line that makes it fail, dev/random is not a reliable testcase
|
a commandline option should refuse input from /dev/urandom and/or unexpected input. |
Wat
|
@zonkzonk r2 is meant to consume, parse, and interpret data, so why would consuming a character buffer or a byte stream be a bug in radare? |
here is other example:
@deeso maybe that is more a philosphical question, when consume, parse, and interpret data, so why would consuming a character buffer or a byte stream result in a core dump ? |
that ".?'?SH?]??8?_o(B>??7??H%??V” line is not segfaulting here. can you please provide a proper test case in shellscript form or so? On 03 Feb 2014, at 17:50, zonkzonk [email protected] wrote:
|
raw file removed, see uuencoded below
uuencoded version:
@deeso my comment was somehow misleading, but there is a difference between file to analyse and project files which I think should not differ that much. |
Still not reproducible, can you reduce the problem to just a single statement to make it crash? Test with latest git again plz. |
Who flagged this as invalid ? Well yes, just save the uuencoded payload as /tmp/buf, then,
I don't know why you let me repeat this statement. :/ |
Oh, that was cool. Running lldb with that rarun2 script allowed me to get the affected line which was just a missing nullptr check.
|
nice :) also, didn't know about lldb. |
Following incorrect parsing of input in -P lets either ld or libc crash. I suggest limit
the size of input to -P.
Note: only apply on test machines!1
Example crash:
[ 8573.478096] r2[1877]: segfault at 0 ip 00007f81564abeaa sp 00007fff76f22148 error 4 in libc-2.18.so[7f815642c000+1a0000]
r2 -v
radare2 0.9.7git @ linux-little-x86-64 git.0.9.6-457-gc56bb2c
commit: c56bb2c build: 2014-02-03
greetings
z.
The text was updated successfully, but these errors were encountered: