[Pkg-fedora-ds-maintainers] [libapache2-mod-nss] 86/156: 229660

Timo Aaltonen tjaalton-guest at moszumanska.debian.org
Wed Jul 2 13:55:31 UTC 2014


This is an automated email from the git hooks/post-receive script.

tjaalton-guest pushed a commit to branch master
in repository libapache2-mod-nss.

commit 61cadf2dd8bf8c1e63a7bcb33a96042f5ab1a9df
Author: rcritten <>
Date:   Thu Feb 22 16:50:14 2007 +0000

    229660
    
    Log a warning on a malformed password file entry instead of dropping core.
---
 nss_engine_pphrase.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/nss_engine_pphrase.c b/nss_engine_pphrase.c
index 6badfe8..83005bf 100644
--- a/nss_engine_pphrase.c
+++ b/nss_engine_pphrase.c
@@ -240,6 +240,11 @@ static char *nss_get_password(FILE *input, FILE *output,
                         tmp--;
                     line[tmp+1] = '\0';
                     ptr = PL_strchr(line, ':');
+                    if (ptr == NULL) {
+                        ap_log_error(APLOG_MARK, APLOG_ERR, 0, NULL,
+                           "Malformed password entry for token %s. Format should be token:password", token_name);
+                        continue;
+                    }
                     for(tmp=1; ptr[tmp] == ' '; tmp++) {}
                     pwdstr = strdup(&(ptr[tmp]));
                 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-fedora-ds/libapache2-mod-nss.git



More information about the Pkg-fedora-ds-maintainers mailing list