Fix put_time() crash on invalid struct tm data by TheStormN · Pull Request #4883 · microsoft/STL (original) (raw)
My next PR about fixing std::put_time
crashes.
If all goes well I will try to also fix the performance issues mentioned in #3575 and #1900 before VS 17.12 cut.
UPDATE: The result now outputs single ? for every invalid tm struct data based on specifier. For example if tm struct contains invalid year and the format string is "%Y-%m-%d-%H-%M", the output will be like ?-08-10-00-45
.