packages feed

text-iso8601 0.1.1.2 → 0.2.0.0

raw patch · 4 files changed

Files

changelog.md view
@@ -1,16 +1,10 @@-# 0.1.1.2 - 2026-08-29--Fix a DoS vulnerability caused by parsing large numbers (advisory [HSEC-2026-0007](https://haskell.github.io/security-advisories/advisory/HSEC-2026-0007.html)). Backported from 0.2.0.0 to ease migration.+# 0.2.0.0 - 2026-05-21  - Fix parsers to reject years with more than 15 digits -# 0.1.1.1--- Support GHC-9.14- # 0.1.1 -- Support GHC-8.6.5...9.12.1+- Support GHC-8.6.5...9.10.1  # 0.1 
src/Data/Time/FromText.hs view
@@ -420,6 +420,8 @@ makeTimeOfDay h m s kont =     if h < 24 && m < 60 && s < 61     then inline kont (Local.TimeOfDay h m s)+    else if h == 24 && m == 0 && s == 0+    then inline kont (Local.TimeOfDay 24 0 0)     else Left $ "Invalid time of day:" ++ show (h,m,s)  -- Parse seconds: @SS.SSS@.
tests/text-iso8601-tests.hs view
@@ -61,6 +61,9 @@         -- accepts +23:59         , accepts T.parseUTCTime "1937-01-01T12:00:00+23:59"         , accepts T.parseUTCTime "1937-01-01T12:00:00-23:59"++        -- accepts 24:00:00+        , accepts T.parseUTCTime "1990-12-31T24:00:00Z"         ]      , testGroup "rejected"
text-iso8601.cabal view
@@ -1,9 +1,9 @@ cabal-version:      1.12 name:               text-iso8601-version:            0.1.1.2+version:            0.2.0.0 synopsis:           Converting time to and from ISO 8601 text. description:-  Converting time to and from IS0 8601 text.+  Converting time to and from ISO 8601 text.   Specifically the [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) profile.  license:            BSD3