662b2a7ec4b9f28b8e7ebac95c229db7babfe86a |
|
02-Jul-2014 |
Phil Carmody <phil@dovecot.fi> |
lib-imap: number parsing simplification and hardenning
The invalid string "4772185884" (2^32*10/9) will be misparsed as being valid.
In uint32_t's, 477218588 * 10 + 4 = 477218588
Many large ranges have this issue, 477218588x-858993459x, 954437176x-...
We have helper functions - use them.
Signed-off-by: Phil Carmody <phil@dovecot.fi> |