Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如:
0:000> ?? testFile //check this variable char * 0x009c6758 "e:\TEST\example.FOO"
问题:
它显然在那里,因为您看到的是一个有效的字符串,而不是之后的几个垃圾字符。
db poi(测试文件)
将字符串中的原始字节转储到控制台,您将能够在末尾看到一个 0 字节。您还可以使用内存窗口查看字符串末尾的零字节。