c++ - What could cause DAMAGE: after normal block error? -


I get this error after my application is running for 2 days.

I have been told this is a type of buffer overflow, but is this the only option?

App C ++ uses Visual C ++ 6.0. In debug, when you get the dynamic buffer from new ,

A special code is inserted before and after buffer for buffer protection

Ex:

& gt; Guard & gt; ===== Buffer Required The size has been allocated on a heap ======= gt;

If you cover the buffer above it, then the guard selected is corrupted. And when you try to remove buffer, debugger buffer overroute I will claim after detection.

Its a bit tricky I suggest some ways to uproot buffer in large code base which can help you find out this scenario:

  • Using tools like:
    A good tool for detecting memory corruption.
  • With debugging GFlags enabled by the Windbag: see my same question here

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -