]> granicus.if.org Git - mutt/commit
Fix imap status count range check.
authorKevin McCarthy <kevin@8t8.us>
Sun, 7 Jan 2018 20:12:42 +0000 (12:12 -0800)
committerKevin McCarthy <kevin@8t8.us>
Sun, 7 Jan 2018 20:12:42 +0000 (12:12 -0800)
commita37a2c4d38acb642a9e7660cd0c924dc9dff801f
tree66fdbf232c9eb79d4d4a5ed7da2ca3c85b39aadf
parent8fcf8edaeff52e98cb61d75e06c3dd4a2ca19046
Fix imap status count range check.

The strtoul() call for parsing the STATUS count wasn't checking the
range properly, because it was assigning to an unsigned int.

Change to assign to a unsigned long, and also add the conversion check
from mutt_atoui().

Thanks to Charles (@chdiza) for quickly noticing the problem!
imap/command.c