Module Name: src Committed By: mrg Date: Fri Dec 26 19:52:00 UTC 2014
Modified Files: src/libexec/httpd: auth-bozo.c Log Message: more for the previous: make sure [i - 1] can never go negative. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/libexec/httpd/auth-bozo.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/libexec/httpd/auth-bozo.c diff -u src/libexec/httpd/auth-bozo.c:1.15 src/libexec/httpd/auth-bozo.c:1.16 --- src/libexec/httpd/auth-bozo.c:1.15 Fri Dec 26 19:48:52 2014 +++ src/libexec/httpd/auth-bozo.c Fri Dec 26 19:52:00 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: auth-bozo.c,v 1.15 2014/12/26 19:48:52 mrg Exp $ */ +/* $NetBSD: auth-bozo.c,v 1.16 2014/12/26 19:52:00 mrg Exp $ */ /* $eterna: auth-bozo.c,v 1.17 2011/11/18 09:21:15 mrg Exp $ */ @@ -265,7 +265,7 @@ base64_decode(const unsigned char *in, s | decodetable[in[i + 3]]; #undef IN_CHECK } - while (in[i - 1] == '=') + while (i > 0 && in[i - 1] == '=') cp--,i--; return (cp - out); }