printf("Done flag:%d cmp:%d \n", flag, strcmp("", "") );
-this line is number 27
==30141== Invalid write of size 4
==30141== at 0x4C27CAE: strcat(strcmp.c:3)
==30141== by 0x108871: main (testClang.c:27)
==30141== Address 0xfeb445bc is on thread 1's stack
Why I call the strcmp, but function stack show that the strcat is
called not the strcmp, but the file is belong to the function strcmp
Can you show the how to replace the strcmp with
“STRCMP(VG_Z_LIBC_SONAME, strcmp)”, and then I can follow the code to
find
When the machine code is 0x4503, the op is cmp, but this
is the T2 format , N bit(7-bit) is 0 , so the thumb instrunction cmp-hi is
unhandled. And the decode action is failure .
The 0x4503 machine code is generate by clang4.0\5.0\6.0, the
machine cpu
Hi
When the machine code is 0x4503, the op is cmp, but this is
the T2 format , N bit(7-bit) is 0 , so the thumb instrunction cmp-hi is
unhandled. And the decode action is failure .
The 0x4503 machine code is generate by clang4.0\5.0\6.0, the
machine cpu