Preventing overflow and underfliw

Discussion in 'iPhone/iPad Programming' started by Rotemg, Feb 21, 2012.

  1. macrumors newbie

    Joined:
    Jan 16, 2012
    #1
    Hello,
    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. macrumors 603

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #2
    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. Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #3
    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. macrumors 603

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #4
    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