Preventing overflow and underfliw

Discussion in 'iOS Programming' started by Rotemg, Feb 21, 2012.

  1. Rotemg macrumors newbie

    Jan 16, 2012
    I am a new iphone programer.
    If someone can explain to me or give me any refre to how i can prevent bufferoverflow, underflow or any other attack on my app I will be very gratefull.
  2. ArtOfWarfare macrumors G3


    Nov 26, 2007
    Is there really a need to worry about that?

    (That is a question. I don't know the answer. I had been under the impression that security against attacks wasn't really a concern for developers, that processes in iOS are so sandboxed that it's really apple, not the developer's, concern.)
  3. dejo Moderator


    Staff Member

    Sep 2, 2004
    The Centennial State
    I think if you are a new iPhone programmer, the least of your worries is attack vectors. Right now you should be concentrating on learning the fundamentals.
  4. firewood macrumors 604

    Jul 29, 2003
    Silicon Valley
    For starters, don't use C strings or malloc'd buffers for any user or network input. Use APIs that use NSStrings and NSData for all input.

Share This Page