pfalcon / ScratchABit

Easily retargetable and hackable interactive disassembler with IDAPython-compatible plugin API
GNU General Public License v3.0
393 stars 47 forks source link

Crash in Keyboard handler #1

Closed thesourcerer8 closed 9 years ago

thesourcerer8 commented 9 years ago

File "scratchabit.py", line 506, in e.loop() "ScratchABit/pyedit/editor.py", line 254, in loop res = self.handle_key(key) File "scratchabit.py", line 314, in handle_key if '0' <= e.value[0] <= '9': IndexError: string index out of range

pfalcon commented 9 years ago

Fixed. But generally, I need to know steps to reproduce an issue ;-).

thesourcerer8 commented 9 years ago

Thanks! I was randomly typing on the keyboard ;-) (cheap fuzzing)

pfalcon commented 9 years ago

Well, there's definitely a lot of issues handling input and UI, I don't try to robust-ize it until I settled on UI approach and libs (so far kinda still experimenting).