• 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: SecKeychainFindGenericPassword
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SecKeychainFindGenericPassword


  • Subject: Re: SecKeychainFindGenericPassword
  • From: Parrish Myers <email@hidden>
  • Date: Sat, 3 Sep 2005 13:17:27 -0700

Is it safe to assume that the memory allocated for the password is 1 larger
than the size reported? If not, I am just stomping on some other piece of
memory.

On 9/3/05, Ryan Britton <email@hidden> wrote:
>
> I ran into this same problem a few days ago. The buffer it gives you
> is not null-terminated, which stringWithUTF8String: expects, so you
> need to handle that part yourself.
>
>
>
> On Sep 3, 2005, at 12:58 PM, Parrish Myers wrote:
>
> > Hello,
> >
> > I have been tring to create an application that uses the keychain
> > services. It seems that when I pick a password that is 3 characters
> > or less (in spite of security reasons) the function
> > "SecKeychainFindGenericPassword" will return a password that is 4
> > characters. The size return correctly states the size, but when the
> > string is passed to "[NSString stringWithUTF8String:] it picks up a
> > string that is of size 4. The other characters in the string are
> > obviously crap, and my authentication fails. Does this mean that
> > there is a bug in "SecKeychainFindGenericPassword" or am I simply
> > initializing the NSString incorrectly. There seems to be no NSString
> > initialization function that is not depreciated that takes size.
> >
> > Does anyone know how to solve this?
> >
> > Thanks
> > Parrish
> > _______________________________________________
> > Do not post admin requests to the list. They will be ignored.
> > Cocoa-dev mailing list (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> >
> > This email sent to email@hidden
> >
>
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: SecKeychainFindGenericPassword
      • From: Ryan Britton <email@hidden>
References: 
 >SecKeychainFindGenericPassword (From: Parrish Myers <email@hidden>)
 >Re: SecKeychainFindGenericPassword (From: Ryan Britton <email@hidden>)

  • Prev by Date: Re: SecKeychainFindGenericPassword
  • Next by Date: help with data browser?
  • Previous by thread: Re: SecKeychainFindGenericPassword
  • Next by thread: Re: SecKeychainFindGenericPassword
  • Index(es):
    • Date
    • Thread