Menu

#161 Check strftime() result in soap_dateTime2s()

Patch
closed-accepted
None
5
2016-03-30
2016-03-03
No

I ran into negative date serialization issue on Windows 10 + MinGW.
It seems tm structure offer tm_sec as unsigned and if passed time_t is -1 then strftime() can't serialize date returned by gmtime().
Attached patch for stdsoap2.cpp add strftime() result check in soap_dateTime2s() and set time to "1969-12-31T23:59:59Z" on error.

1 Attachments

Discussion

  • Robert van Engelen

    • status: open --> closed-accepted
    • assigned_to: Robert van Engelen
     
  • Robert van Engelen

    Thanks for sharing the patch. The 2.8.30 release includes similar changes.

     

Log in to post a comment.

MongoDB Logo MongoDB