After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 732705 - Check for tmon in _xmlSchemaDateAdd() is incorrect
Check for tmon in _xmlSchemaDateAdd() is incorrect
Status: RESOLVED FIXED
Product: libxml2
Classification: Platform
Component: general
git master
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2014-07-03 18:28 UTC by David Kilzer
Modified: 2014-07-14 14:32 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description David Kilzer 2014-07-03 18:28:54 UTC
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;

See:
<https://git.gnome.org/browse/libxml2/tree/xmlschemastypes.c#n3847>

Regressed in:
<https://git.gnome.org/browse/libxml2/commit/?id=14b5643947845df089376106517c4f7ba061e4b0>
Comment 1 Daniel Veillard 2014-07-14 14:32:05 UTC
Ah indeed, plus it's my fault :-) ... 8 years ago !

Fixed now in git, commit 30cf439efcea9732d0ecd33b7955666ce264129b

  thanks !

Daniel