Decode: restrict timezone offset values (#696)
Don't allow hours greater than 24 and minutes greater than 60 per RFC 3339.
This commit is contained in:
@@ -2632,6 +2632,14 @@ world'`,
|
||||
desc: `invalid number of seconds digits with trailing digit`,
|
||||
data: `a=0000-01-01 00:00:000000Z3`,
|
||||
},
|
||||
{
|
||||
desc: `invalid zone offset hours`,
|
||||
data: `a=0000-01-01 00:00:00+25:00`,
|
||||
},
|
||||
{
|
||||
desc: `invalid zone offset minutes`,
|
||||
data: `a=0000-01-01 00:00:00+00:61`,
|
||||
},
|
||||
{
|
||||
desc: `invalid character in zone offset hours`,
|
||||
data: `a=0000-01-01 00:00:00+0Z:00`,
|
||||
|
||||
Reference in New Issue
Block a user