diff options
author | Aron Xu <aron@debian.org> | 2015-09-21 22:55:08 +0800 |
---|---|---|
committer | Aron Xu <aron@debian.org> | 2015-09-21 22:55:08 +0800 |
commit | d548c999ade382febb424b26743b3c4d63159ae0 (patch) | |
tree | 232c9c894b45099f211728742569111738b17e16 /debian/patches/0041-Check-for-tmon-in-_xmlSchemaDateAdd-is-incorrect.patch | |
parent | d837811e969fac31afdf39c00ba579b33f6adeb6 (diff) | |
download | libxml2-d548c999ade382febb424b26743b3c4d63159ae0.tar.gz |
Revert "Restore all patches available in 2.9.1+dfsg1-5 in stretch, ensuring CVE-2014-3660 is fixed too."
This reverts commit 37f590756a23e167808f76f1389c36f0a2d39f11.
Diffstat (limited to 'debian/patches/0041-Check-for-tmon-in-_xmlSchemaDateAdd-is-incorrect.patch')
-rw-r--r-- | debian/patches/0041-Check-for-tmon-in-_xmlSchemaDateAdd-is-incorrect.patch | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/debian/patches/0041-Check-for-tmon-in-_xmlSchemaDateAdd-is-incorrect.patch b/debian/patches/0041-Check-for-tmon-in-_xmlSchemaDateAdd-is-incorrect.patch deleted file mode 100644 index d4fddfe..0000000 --- a/debian/patches/0041-Check-for-tmon-in-_xmlSchemaDateAdd-is-incorrect.patch +++ /dev/null @@ -1,32 +0,0 @@ -From: David Kilzer <ddkilzer@kilzer.net> -Date: Mon, 14 Jul 2014 22:29:56 +0800 -Subject: Check for tmon in _xmlSchemaDateAdd() is incorrect - -For https://bugzilla.gnome.org/show_bug.cgi?id=732705 -In _xmlSchemaDateAdd(), the check for |tmon| should be the following -since MAX_DAYINMONTH() expects a month in the range [1,12]: - - if (tmon < 1) - tmon = 1; - -Regression introduced in -https://git.gnome.org/browse/libxml2/commit/?id=14b5643947845df089376106517c4f7ba061e4b0 ---- - xmlschemastypes.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/xmlschemastypes.c b/xmlschemastypes.c -index ec403e8..7e1d54a 100644 ---- a/xmlschemastypes.c -+++ b/xmlschemastypes.c -@@ -3848,8 +3848,8 @@ _xmlSchemaDateAdd (xmlSchemaValPtr dt, xmlSchemaValPtr dur) - * Coverity detected an overrun in daysInMonth - * of size 12 at position 12 with index variable "((r)->mon - 1)" - */ -- if (tmon < 0) -- tmon = 0; -+ if (tmon < 1) -+ tmon = 1; - if (tmon > 12) - tmon = 12; - tempdays += MAX_DAYINMONTH(tyr, tmon); |