fixed signed int issue in ida plugin

This commit is contained in:
George Hotz 2014-08-13 22:48:07 -07:00
parent 4d0772cc1a
commit 7343a1602b
4 changed files with 2 additions and 3 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,15 +1,14 @@
#!/bin/bash
set -e
SDKROOT=~/build/idasdk66
unamestr=$(uname)
if [[ "$unamestr" == 'Linux' ]]; then
SDKROOT=~/build/idasdk66
IDAROOT=~/ida-6.6
OUTPUT="qira.plx"
OUTPUT64="qira.plx64"
ln -sf libs/linux_libwebsockets.a libwebsockets.a
elif [[ "$unamestr" == 'Darwin' ]]; then
SDKROOT=~/idasrc
IDAROOT="/Applications/IDA Pro 6.6/idaq.app/Contents/MacOS/"
OUTPUT="qira.pmc"
OUTPUT64="qira.pmc64"

View File

@ -47,7 +47,7 @@ static int callback_qira(struct libwebsocket_context* context,
msg("QIRARX:%s\n", (char *)in);
#endif
if (memcmp(in, "setaddress ", sizeof("setaddress ")-1) == 0) {
ea_t addr = atoi((char*)in+sizeof("setaddress ")-1);
ea_t addr = strtoul((char*)in+sizeof("setaddress ")-1, NULL, 10);
thread_safe_jump_to(addr);
}
break;