美文网首页
isctype assertion failure

isctype assertion failure

作者: 玻璃缸里的自游 | 来源:发表于2019-03-15 15:48 被阅读0次

用withdll在一个进程中注入trcapi32.dll,监控该进程win32api调用情况时,发生了以下错误。


image.png

查网络,有一个提及isctype断言失败的。

image.png

试一下,居然正解。
说明vs ide默认的c语言的char是signed char的。而detours中的logmessage没有考虑系统的unsigned char的问题。

回看,detours中syelogd.cpp出错的地方是在这里:


image.png

问题原因找到了,那就好办了,相比改编译选项影响范围太大来说,直接改出错的源码就好。
如图:在isspace的参数前加上unsigned的强制转换就好。


image.png

相关文章

网友评论

      本文标题:isctype assertion failure

      本文链接:https://www.haomeiwen.com/subject/heqrmqtx.html