Friday, December 16, 2011

Buffer Overflow

Discuss about Buffer Overflow and its counter measures.Thanks

1.Stack Overflow
2.Heap Overflow



2 comments:

  1. C Stcak setup & Stack based oveflow----
    http://www.tenouk.com/cncplusplusbufferoverflow.html

    ReplyDelete
  2. 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))

    ReplyDelete