• 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
DirectoryServices-258: dsDataListInsertAfter() logic bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DirectoryServices-258: dsDataListInsertAfter() logic bug


  • Subject: DirectoryServices-258: dsDataListInsertAfter() logic bug
  • From: Brian Bergstrand <email@hidden>
  • Date: Thu, 15 Jun 2006 14:45:16 -0500

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

There's a logic bug in dsDataListInsertAfter() on 10.3.9:

DirServicesUtils.cpp:1099

pNewNode = ::dsAllocListNodeFromBuffPriv( inDataNode->fBufferData, inDataNode->fBufferLength );
if ( pNewNode != nil )


As opposed to DirectoryServices-352.1 (10.4.x)

DirServicesUtils.cpp:1161
pNewNode = ::dsAllocListNodeFromBuffPriv( inDataNode->fBufferData, inDataNode->fBufferLength );
if ( pNewNode == nil )



DS-255 will return an error if the allocation succeeds. So, is there any workaround other than duplicating dsAllocListNodeFromBuffPriv() (and its support functions) in my plugin.


I will file a bug (but obviously it's a known one as it was fixed in 10.4 - but has not been fixed in any 10.3.9 Sec Update). However, I need a workable solution in the present.

Thanks.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFEkbjRedHYW7bHtqIRAuf4AJ4h48XZ0zTIxDHWgEFP85K09ZxLsgCfV8hP
BZrtLDyJBEUUGwoxWjTcAiw=
=UrRX
-----END PGP SIGNATURE-----
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: DirectoryServices-258: dsDataListInsertAfter() logic bug
      • From: Brian Bergstrand <email@hidden>
  • Prev by Date: Re: /dev/cu.* vs /dev/tty.* ?
  • Next by Date: Re: darwinbuild for 10.4.6 PPC
  • Previous by thread: Re: /dev/cu.* vs /dev/tty.* ?
  • Next by thread: Re: DirectoryServices-258: dsDataListInsertAfter() logic bug
  • Index(es):
    • Date
    • Thread