[libc-commits] [libc] [libc] Implement timegm (PR #243668)

Jeff Bailey via libc-commits libc-commits at lists.llvm.org
Tue Nov 17 23:22:44 PST 2026


================
@@ -68,9 +68,12 @@ cpp::optional<time_t> mktime_internal(const tm *tm_out) {
 
   // TODO: https://github.com/llvm/llvm-project/issues/121962
   // Need to handle timezone and update of tm_isdst.
+  // Widen before multiplying so large tm_min/tm_hour values cannot overflow
----------------
kaladron wrote:

nit: I read this as being part of the TODO.


https://github.com/llvm/llvm-project/pull/243668


More information about the libc-commits mailing list