• 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: Where's the buffer overrun?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where's the buffer overrun?


  • Subject: Re: Where's the buffer overrun?
  • From: Nick Zitzmann <email@hidden>
  • Date: Wed, 19 Mar 2008 18:04:42 -0600


On Mar 19, 2008, at 6:00 PM, Andrew Farmer wrote:
What's bothering me a lot more is the use of an appendByte: method. NSMutableData doesn't document the existence of such a method. I'm not sure why this would cause guard_malloc to choke *later on*, but it's certainly something to look at.

D'oh; I forgot I have a category for that too in NSMutableData:

- (void)appendByte:(u_int8_t)aByte
{
	[self appendBytes:&aByte length:1];
}

A traceback would be good, too. Is the guard_malloc error in the OP's function, or in Apple's code somewhere?


It's in my method. As I tried to point out, the crash occurs when trying to set returnArray[0] to the mutableBytes of the data.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

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


References: 
 >Where's the buffer overrun? (From: Nick Zitzmann <email@hidden>)
 >Re: Where's the buffer overrun? (From: Chris Suter <email@hidden>)
 >Re: Where's the buffer overrun? (From: Andrew Farmer <email@hidden>)

  • Prev by Date: Re: Where's the buffer overrun?
  • Next by Date: Re: Where's the buffer overrun?
  • Previous by thread: Re: Where's the buffer overrun?
  • Next by thread: Re: Where's the buffer overrun?
  • Index(es):
    • Date
    • Thread