Bug in sieve script compilation
10 Sep
2020
10 Sep
'20
7:22 p.m.
Hi, this is Rumata888 from hackerone. This is the other bug I found in sievec. If you try to compile the following script, it will result in a panic. The reason is: export expects its arguments to be either strings or lists of strings. When we issue an export command with a number immediately followed by an export command with a string argument, on parsing the second command sievec tries to merge the commands by merging the arguments. When it encounters an argument of unexpected type, it panics. Once again, I would advise unlinking invalid commands from ast, so that parsing of following commands was not dependent on previous irregularities.
1564
Age (days ago)
1564
Last active (days ago)
0 comments
1 participants
participants (1)
-
Иннокентий Сенновский