Memory corruption issue
Memory corruption issue
For removing corruption we have the following guidelines as per follows:-
1) Dangling pointer- if an alias pointer(copy of another pointer) is not set to NULL after Free (pointer is given in allocation history)
2) Check memcpy/memset on a pointer which is already
freed.
3) Check the size of allocation in both allocation and
free call.
4) Wrong pointer is used in Free call or a different pointer is used in alloc/free call.
Most common issues we have noticed is the Dangling pointer due to which the Magic number value which is written on the payload that number is overwritten using the alias pointer(Dangling pointer).
Comments
Post a Comment