C Stcak setup & Stack based oveflow----http://www.tenouk.com/cncplusplusbufferoverflow.html
Given two buffers; how would you deduce whether or not they are overlapping?Assumptions:Let Source pointer be 's1' and destination pointer be 's2' and let the source string is of length 'n'Solution:Overlap condition:if((s2>s1) && s2 < (s1+n))
C Stcak setup & Stack based oveflow----
ReplyDeletehttp://www.tenouk.com/cncplusplusbufferoverflow.html
Given two buffers; how would you deduce whether or not they are overlapping?
ReplyDeleteAssumptions:
Let Source pointer be 's1' and destination pointer be 's2' and let the source string is of length 'n'
Solution:
Overlap condition:
if((s2>s1) && s2 < (s1+n))