mirror of
https://github.com/mjl-/mox.git
synced 2024-12-27 08:53:48 +03:00
142b2498bf
these could cause the parser to reject correct commands. the first bug is about the allowed chars for an "atom", we were accepting too many. this probably isn't easily triggered in practice. the second bug is about how numbers (digits) are parsed. when gathering digits to parse as number, we didn't consider only the directly upcoming digits that make up the number, but continued looking for digits later on in the command. then we tried to parse a string that was too long as a number, which would fail because of additional characters. this could have been triggered with commands containing two numbers. this is possible with e.g. "tag search or larger 123 smaller 123", the "or" takes two search keys again, each with a number. not too common, but can happen. found while writing tests for upcoming condstore/qresync implementation. |
||
---|---|---|
.. | ||
append_test.go | ||
authenticate_test.go | ||
copy_test.go | ||
create_test.go | ||
delete_test.go | ||
error.go | ||
expunge_test.go | ||
fetch.go | ||
fetch_test.go | ||
fuzz_test.go | ||
idle_test.go | ||
list.go | ||
list_test.go | ||
lsub_test.go | ||
move_test.go | ||
pack.go | ||
parse.go | ||
prefixconn.go | ||
protocol.go | ||
protocol_test.go | ||
rename_test.go | ||
search.go | ||
search_test.go | ||
selectexamine_test.go | ||
server.go | ||
server_test.go | ||
starttls_test.go | ||
status_test.go | ||
store_test.go | ||
subscribe_test.go | ||
unselect_test.go | ||
unsubscribe_test.go | ||
utf7.go | ||
utf7_test.go |