View Full Version : C Subtleties!
sebas_phoenix
07-04-2012, 11:46 PM
Check out C Subtleties! « phr33dom (http://phr33dom.wordpress.com/2012/07/04/c-subtleties/) . I have discussed some arcane concepts of C that every _good_ programmer in C should know to avoid security bugs.
Reference: TAOSSA
fb1h2s
07-05-2012, 12:45 AM
Hai good job man, can u share one copy of the articles in the forum as well, we might need it for the monthly magazine.
Hey dude , indeed article .. Do you have Dangling pointer exploitation examples
H@CK3R_ADI
07-09-2012, 07:12 PM
nice article.......kudos to you for
sebas_phoenix
07-10-2012, 12:49 PM
@fb1h2s: Thanks bro..
@[s] : I don't have dangling exploitation samples, i guess it will be dependent on a lot of parameters, one place where dangling pointer occurs often is in C++, when a member variable is dynamically allocated and then you are copying the object to another object of the same class. By default, c++ performs shallow copy,so there is a high probability that a dangling pointer issue might occur here. Remediation is to implement your own copy constructor and also the override the '=' operator when you have a class member variable whose memory is dynamically allocated.
@H@CK3R_ADI : Thanks , try solving the 2 sample programs I have given in my blog.
Powered by: vBulletin
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd