Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi there ,

Facing a Buffer Over Flow issue with my application.
Is there any way where i can catch the Buffer overflow precisely??
It happens only in my release build. Application Works perfectly fine in the debug version.
Any free tools out there or any method that might help me catch the over flow.
The source code is very large and its next to impossible to go and check each and every line for the over flows.

Help me out guys..
Have spent hours trying to find it out.
Posted
Comments
Richard MacCutchan 20-May-12 10:10am    
Without a lot more detail it's impossible to guess what is happening. How do you know you are getting a buffer overflow and which buffer is it happening in?

1 solution

Free tools -
On Linux - Valgrind[^]- for memory debugging, memory leak detection, and profiling.
On Windows -
CppCheck[^]-
-Out of bounds checking
-Check the code for each class
-Checking exception safety
-etc.
and
Visual Leak Detector [^]- memory leak detection system for Visual C++.
 
Share this answer
 
Comments
Mudaka 21-May-12 4:38am    
Thanks a lot for the information. I also had a problem like his and CppCheck helped. It quite a awesome tool!
Saurabh.abhyankar 21-May-12 8:15am    
yup cppCheck worked great..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900