GNOME Bugzilla – Bug 129983
libexslt date functions are not thread safe.
Last modified: 2009-08-15 18:40:50 UTC
libexslt date functions are not thread safe because exsltDateCurrent use localtime, not localtime_r, in thread enabled builds.
Created attachment 22705 [details] [review] Proposed patch.
There was a bit more work required (checking during library configuration that localtime_r is present on the system), plus the macro LIBXML_THREAD_ENABLED is not present within date.c, but I hope that the changes I have made will accomplish what you wanted. The changed routine (libexslt/date.c) is in CVS.
This should be closed by release of libxslt-1.1.5, thanks, Daniel
This function still uses gmtime which is not thread-safe. gmtime_r is a thread-safe version.
OK, I extended the previous modification to also use gmtime_r. Fix is in CVS (libexslt/date.c, configure.in, config.h.in). Thanks for the report.
This should be closed by release of libxslt-1.1.15 thanks, Daniel