Watch a memory location/install 'data breakpoint' from code?

前端 未结 5 1076
迷失自我
迷失自我 2020-12-21 04:37

We have a memory overwrite problem. At some point, during the course of our program, a memory location is being overwritten and causing our program to crash. the problem hap

5条回答
  •  南笙
    南笙 (楼主)
    2020-12-21 05:17

    There are tools for this - like heap agent and boundschecker and many others that will discover overwrites. Basically you need some sentinels at the end of your memory allocations and they need to be checked.

提交回复
热议问题