mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Fix range check in map_html_tags()
This commit is contained in:
parent
cf4991d602
commit
6e259b76b7
@ -1,3 +1,7 @@
|
||||
2014-11-12 Witchakorn Kamolpornwijit <witchakk@mit.edu> (tiny change)
|
||||
|
||||
* html-parse.c (map_html_tags): Fix range check
|
||||
|
||||
2014-11-11 Tim Ruehsen <tim.ruehsen@gmx.de>
|
||||
|
||||
* openssl.c (ssl_init): Load CRL file given by --crl-file
|
||||
|
@ -881,7 +881,7 @@ map_html_tags (const char *text, int size,
|
||||
if (*p == '!')
|
||||
{
|
||||
if (!(flags & MHT_STRICT_COMMENTS)
|
||||
&& p < end + 3 && p[1] == '-' && p[2] == '-')
|
||||
&& p + 3 < end && p[1] == '-' && p[2] == '-')
|
||||
{
|
||||
/* If strict comments are not enforced and if we know
|
||||
we're looking at a comment, simply look for the
|
||||
|
Loading…
Reference in New Issue
Block a user