apple / ccs-pykerberos

Python Kerberos library used by CalendarServer
https://www.calendarserver.org
Apache License 2.0
117 stars 65 forks source link

Segfault in authGSSClientInit #43

Closed macosforgebot closed 9 years ago

macosforgebot commented 9 years ago

glen@… originally submitted this as ticket:913


Changes introduced by #⁠847 to support credential delegation also introduced a crash under some circumstances when an uninitialised pointer is accessed. Attached is a patch to initialise the pointer to NULL, and to check for NULL before using the pointer.

macosforgebot commented 9 years ago

glen@… originally submitted this as _attachment:fix_uninitialised_pointer.diff:⁠ticket:913_

macosforgebot commented 9 years ago

@cyrusdaboo originally submitted this as comment:1:⁠ticket:913


Thanks for spotting that.

Fixed in r15134.