Commit cea0bfbd by Craig Heffner

Relaxed date validation for gzip signatures

parent 6d4483b7
...@@ -137,14 +137,12 @@ ...@@ -137,14 +137,12 @@
>3 byte &0x20 \b, encrypted{invalid} >3 byte &0x20 \b, encrypted{invalid}
# Dates before 1992 are {invalid}, unless of course you're DD-WRT in which # Dates before 1992 are {invalid}, unless of course you're DD-WRT in which
# case you don't know how to set a date in your gzip files. Brilliant. # case you don't know how to set a date in your gzip files. Brilliant.
>4 lelong =0 \b, NULL date (1970-01-01 00:00:00) >4 ledate x \b, last modified: %s
>4 lelong <0 {invalid} >4 lelong =0 (null date)
>4 lelong >0 >4 lelong !0
>>4 lelong <694224000 {invalid} >>4 lelong <694224000 (bogus date)
>>4 lelong =694224000 {invalid} >>4 lelong =694224000 (bogus date)
>>4 lelong >694224000 \b, last modified:
>>>4 ledate x %s
>>>4 lelong x {epoch:%d}
# Supplementary magic data for the file(1) command to support # Supplementary magic data for the file(1) command to support
# rzip(1). The format is described in magic(5). # rzip(1). The format is described in magic(5).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment