diff options
author | 2006-07-17 22:29:29 +0000 | |
---|---|---|
committer | 2006-07-17 22:29:29 +0000 | |
commit | 7dbdb5287ffd064016d8660c874b18ceb58cf0e1 (patch) | |
tree | 2ef2ffe7f89002c59cf420bfb882a8face14425c | |
parent | please lint (diff) | |
download | wireguard-openbsd-7dbdb5287ffd064016d8660c874b18ceb58cf0e1.tar.xz wireguard-openbsd-7dbdb5287ffd064016d8660c874b18ceb58cf0e1.zip |
avoid obvious out-of-bounds accesses.
-rw-r--r-- | gnu/usr.bin/texinfo/makeinfo/html.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/usr.bin/texinfo/makeinfo/html.c b/gnu/usr.bin/texinfo/makeinfo/html.c index b92dc3b6e3d..36d29bd1d63 100644 --- a/gnu/usr.bin/texinfo/makeinfo/html.c +++ b/gnu/usr.bin/texinfo/makeinfo/html.c @@ -1,5 +1,5 @@ /* html.c -- html-related utilities. - $Id: html.c,v 1.1.1.3 2006/07/17 16:03:46 espie Exp $ + $Id: html.c,v 1.2 2006/07/17 22:29:29 espie Exp $ Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. @@ -445,7 +445,7 @@ rollback_empty_tag (char *tag) return 0; /* Find the end of the previous tag. */ - while (output_paragraph[check_position-1] != '>' && check_position > 0) + while (check_position > 0 && output_paragraph[check_position-1] != '>') check_position--; /* Save stuff between tag's end to output_paragraph's end. */ @@ -462,7 +462,7 @@ rollback_empty_tag (char *tag) } /* Find the start of the previous tag. */ - while (output_paragraph[check_position-1] != '<' && check_position > 0) + while (check_position > 0 && output_paragraph[check_position-1] != '<') check_position--; /* Check to see if this is the tag. */ |