In function save_cond, the num_cond is first assigned to i and then increase by one. And function save_mb only saves data when i > 0, so this will cause function FnHandler misses the first strcmp conditional statement. So angora::search::cmpfn can not get the correct magic bytes.
When testing pin mode with tests/strcmp, I got the following error:
I studied this error and found the problem is in pin_mode/logger.h:
In function
save_cond
, thenum_cond
is first assigned to i and then increase by one. And functionsave_mb
only saves data wheni > 0
, so this will cause functionFnHandler
misses the firststrcmp
conditional statement. Soangora::search::cmpfn
can not get the correct magic bytes.