• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTableView - populating from C procedure
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView - populating from C procedure


  • Subject: Re: NSTableView - populating from C procedure
  • From: Graham Cox <email@hidden>
  • Date: Thu, 23 Jul 2009 16:38:42 +1000


On 23/07/2009, at 4:25 PM, Alexander Bokovikov wrote:

I can it understand, when viruses send something illegal to a webserver, which has flaws in the request processing routine, but in my case it's an internal function, which, of course, should check the buffer size, but how it could be accessible for a virus?


If it checks the buffer size and the string size, it should be OK. Not all dialects of C have historically supported sizeof() for stack-based buffers but I think all modern ones do. My warning was of a very general nature, and may not apply to your app. But every time you declare buffer space as a stack array, you should mentally consider whether a buffer exploit might be possible there.

--Graham

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSTableView - populating from C procedure
      • From: Marco S Hyman <email@hidden>
References: 
 >NSTableView - populating from C procedure (From: Alexander Bokovikov <email@hidden>)
 >Re: NSTableView - populating from C procedure (From: Graham Cox <email@hidden>)
 >Re: NSTableView - populating from C procedure (From: Alexander Bokovikov <email@hidden>)

  • Prev by Date: Re: NSTableView - populating from C procedure
  • Next by Date: NSTableView: Out-Of-Bounds Array Error on reloadData
  • Previous by thread: Re: NSTableView - populating from C procedure
  • Next by thread: Re: NSTableView - populating from C procedure
  • Index(es):
    • Date
    • Thread