diff options
author | 2021-10-04 14:01:23 +0200 | |
---|---|---|
committer | 2021-10-04 14:03:07 +0200 | |
commit | 945e6972bd0a9ba9f533aa806e8bded164534cb6 (patch) | |
tree | ba945697869af2ad7eee917d651d4524512ac201 /app-text/htmltidy/files/htmltidy-0.99.0-CVE-2015-5522.patch | |
parent | x11-misc/xdotool: drop 3.20160805.1 (diff) | |
download | gentoo-945e6972bd0a9ba9f533aa806e8bded164534cb6.tar.gz gentoo-945e6972bd0a9ba9f533aa806e8bded164534cb6.tar.bz2 gentoo-945e6972bd0a9ba9f533aa806e8bded164534cb6.zip |
app-text/htmltidy: drop 0.99.0
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'app-text/htmltidy/files/htmltidy-0.99.0-CVE-2015-5522.patch')
-rw-r--r-- | app-text/htmltidy/files/htmltidy-0.99.0-CVE-2015-5522.patch | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/app-text/htmltidy/files/htmltidy-0.99.0-CVE-2015-5522.patch b/app-text/htmltidy/files/htmltidy-0.99.0-CVE-2015-5522.patch deleted file mode 100644 index b4d6158ea04a..000000000000 --- a/app-text/htmltidy/files/htmltidy-0.99.0-CVE-2015-5522.patch +++ /dev/null @@ -1,34 +0,0 @@ -From c18f27a58792f7fbd0b30a0ff50d6b40a82f940d Mon Sep 17 00:00:00 2001 -From: Geoff McLane <ubuntu@geoffair.info> -Date: Wed, 3 Jun 2015 20:26:03 +0200 -Subject: [PATCH] Issue #217 - avoid len going negative, ever... - ---- - src/lexer.c | 8 +++++--- - 1 file changed, 5 insertions(+), 3 deletions(-) - -diff --git a/src/lexer.c b/src/lexer.c -index 376a3d8..664f806 100644 ---- a/src/lexer.c -+++ b/src/lexer.c -@@ -3739,16 +3740,17 @@ static tmbstr ParseValue( TidyDocImpl* doc, ctmbstr name, - /* and prompts attributes unless --literal-attributes is set to yes */ - /* #994841 - Whitespace is removed from value attributes */ - -- if (munge && -+ /* Issue #217 - Also only if/while (len > 0) - MUST NEVER GO NEGATIVE! */ -+ if ((len > 0) && munge && - TY_(tmbstrcasecmp)(name, "alt") && - TY_(tmbstrcasecmp)(name, "title") && - TY_(tmbstrcasecmp)(name, "value") && - TY_(tmbstrcasecmp)(name, "prompt")) - { -- while (TY_(IsWhite)(lexer->lexbuf[start+len-1])) -+ while (TY_(IsWhite)(lexer->lexbuf[start+len-1]) && (len > 0)) - --len; - -- while (TY_(IsWhite)(lexer->lexbuf[start]) && start < len) -+ while (TY_(IsWhite)(lexer->lexbuf[start]) && (start < len) && (len > 0)) - { - ++start; - --len; |