Files
containerd/pkg
Nikolaus Schuetz 41f6f0e877 pkg/epoch: reject negative SOURCE_DATE_EPOCH values
ParseSourceDateEpoch used strconv.ParseInt, which accepts a leading sign, so a
negative SOURCE_DATE_EPOCH was silently accepted and produced a pre-1970
timestamp with a nil error. That contradicts the function's own doc ("returns
an error if ... not well-formatted") and the reproducible-builds spec, where
SOURCE_DATE_EPOCH is a non-negative number of seconds since the Unix epoch.
Reject negative values and add a regression test.

Signed-off-by: Nikolaus Schuetz <nikolauspschuetz@gmail.com>
2026-07-22 14:46:05 -07:00
..
2026-03-15 18:24:15 +01:00
2026-03-15 18:24:15 +01:00
2026-03-15 14:55:21 +01:00
2025-04-23 18:03:29 -07:00
2026-03-15 18:24:13 +01:00
2026-03-15 14:55:21 +01:00
2026-03-17 11:49:57 +01:00
2026-03-17 11:49:57 +01:00
2023-09-22 07:53:23 -07:00
2024-12-23 23:14:49 -07:00
2026-03-15 15:00:12 +01:00
2026-03-15 15:00:12 +01:00
2026-01-15 13:06:50 -08:00