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-...
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 <e888d2bd6f13f82caa51a37c03d034c76f661ba3@dovecot.fi>

LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot