Hello community, here is the log from the commit of package pam_krb5 checked in at Sat Apr 22 01:27:22 CEST 2006. -------- --- pam_krb5/pam_krb5.changes 2006-01-25 21:39:14.000000000 +0100 +++ STABLE/pam_krb5/pam_krb5.changes 2006-04-21 11:19:18.000000000 +0200 @@ -1,0 +2,5 @@ +Fri Apr 21 11:18:26 CEST 2006 - mc@suse.de + +- fix segfault in prompter [#165972] + +------------------------------------------------------------------- New: ---- pam_krb5-2.2.3-1-prompter-segfault.dif ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ pam_krb5.spec ++++++ --- /var/tmp/diff_new_pack.eTw2e9/_old 2006-04-22 01:27:17.000000000 +0200 +++ /var/tmp/diff_new_pack.eTw2e9/_new 2006-04-22 01:27:17.000000000 +0200 @@ -5,7 +5,7 @@ # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # -# Please submit bugfixes or comments via http://bugs.opensuse.org +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild @@ -18,7 +18,7 @@ Provides: pam_krb Autoreqprov: on Version: 2.2.3 -Release: 4 +Release: 15 Summary: PAM Module for Kerberos Authentication URL: http://sourceforge.net/projects/pam-krb5/ Source: pam_krb5-%{version}-%{PAM_RELEASE}.tar.bz2 @@ -26,6 +26,7 @@ Patch4: pam_krb5-2.2.0-2-noafsonarm.patch Patch10: pam_krb5-upstreamfix-password-handling.dif Patch11: pam_krb5-upstreamfix-testcase.dif +Patch12: pam_krb5-2.2.3-1-prompter-segfault.dif BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -45,6 +46,7 @@ %patch4 %patch10 %patch11 +%patch12 %build %{suse_update_config -f} @@ -76,6 +78,8 @@ %attr(755,root,root) /usr/bin/afs5log %changelog -n pam_krb5 +* Fri Apr 21 2006 - mc@suse.de +- fix segfault in prompter [#165972] * Wed Jan 25 2006 - mls@suse.de - converted neededforbuild to BuildRequires * Tue Jan 17 2006 - mc@suse.de ++++++ pam_krb5-2.2.3-1-prompter-segfault.dif ++++++ --- src/prompter.c +++ src/prompter.c 2006/04/21 09:10:26 @@ -197,6 +197,12 @@ pdata->previous_password)) { continue; } + /* This happens if somebody presses Ctrl+D */ + if(responses[j + headers].resp == NULL) { + + return KRB5_LIBOS_CANTREADPWD; + } + strcpy(prompts[i].reply->data, responses[j + headers].resp); prompts[i].reply->length = strlen(responses[j + headers].resp); j++; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun...