Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DirectoryServices-258: dsDataListInsertAfter() logic bug



-----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:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.