-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Use of uninitialized memory in sparc disassembler #877
Comments
any expected output for this input? |
More hints
Here we have this
Being RegNo == 1968727736 |
The bug is elsewhere, but leading to this point.
It is important to know if this is a valid code, or not.
On Mar 22, 2017 5:06 PM, "Álvaro Felipe Melchor" <[email protected]> wrote:
More hints
=================================================================
==59101==ERROR: AddressSanitizer: SEGV on unknown address
0x0001f61fc5ee (pc 0x00010b4bf8b9 bp 0x7fff557933e0 sp 0x7fff557933c0
T0)
#0 0x10b4bf8b8 in getRegisterName SparcGenAsmWriter.inc:1205
#1 0x10b4bf7f7 in printRegName SparcInstPrinter.c:97
#2 0x10b4bdef3 in printOperand SparcInstPrinter.c:174
#3 0x10b4bd202 in printInstruction SparcGenAsmWriter.inc:851
#4 0x10b4a1732 in Sparc_printInst SparcInstPrinter.c:446
Here we have this
return AsmStrs+RegAsmOffset[RegNo-1];
Being RegNo == 1968727736
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#877 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AFsG4OTUDVEQXpBjAweJ9i0YInjxitrEks5roOSfgaJpZM4Mkqwy>
.
|
The important is to fix the crash since capstone might be feed with wrong data and should be resilient against that. Regarding whether is valid code or not, I am not familiar with sparc but with
|
I need to fix the crash, and fucntionality at the same time. That is why
expected output is important
|
As per radareorg/radare2#7068 this is the result of fuzzing so I don't think any output was expected other than not crashing. |
so the right result is to say this is invalid code? |
Close this issue for now because of legacy, we are preparing to release Capstone 5.0, plz feel free to open a new issue if that still has this issue. |
Reproducer:
also it can be reproduced with cstool:
This issue was iniitally reported in radareorg/radare2#7068 by @mtowalski
The text was updated successfully, but these errors were encountered: