Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/httpd more for the previous: make sure [i - 1] can ...
details: https://anonhg.NetBSD.org/src/rev/8c1882fc89f6
branches: trunk
changeset: 335120:8c1882fc89f6
user: mrg <mrg%NetBSD.org@localhost>
date: Fri Dec 26 19:52:00 2014 +0000
description:
more for the previous: make sure [i - 1] can never go negative.
diffstat:
libexec/httpd/auth-bozo.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 1c054f9c4385 -r 8c1882fc89f6 libexec/httpd/auth-bozo.c
--- a/libexec/httpd/auth-bozo.c Fri Dec 26 19:48:52 2014 +0000
+++ b/libexec/httpd/auth-bozo.c Fri Dec 26 19:52:00 2014 +0000
@@ -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 @@
| decodetable[in[i + 3]];
#undef IN_CHECK
}
- while (in[i - 1] == '=')
+ while (i > 0 && in[i - 1] == '=')
cp--,i--;
return (cp - out);
}
Home |
Main Index |
Thread Index |
Old Index