Nov. 8, 2022
2:23 p.m.
On Tue, Nov 08, 2022 at 07:15:39AM -0700, Jonathan Leffler via tz <tz@iana.org> wrote:
This makes a copy of the `const struct tm` that is the argument to strftime(), and passes that copy to mktime(), which reads a few fields and sets most fields. But since it is working on a copy of the argument to strftime(), I don't see a problem. Can you elaborate?
The argument is that some fields might have a trap representation, so copying the whole struct might not be safe. -- Marc Lehmann