Avoid a crash iterating in imap summary if it's corrupted.
authorJose Dapena Paz <jdapena@igalia.com>
Mon, 27 Jul 2009 15:42:32 +0000 (15:42 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Mon, 27 Jul 2009 15:42:32 +0000 (15:42 +0000)
commitfb44c5f47c1b92ed6fbd1b2121f1d32a26412193
tree0621dd5bad4cc6e581ce478e5e2d16ffbfec310c
parenteb3423e9ab44d793589c4bbc0524fedeff1253c6
Avoid a crash iterating in imap summary if it's corrupted.

* libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-folder.c
  (imap_update_summary): if summary is bigger than the sequence number
  coming from server, summary is corrupt. We were iterating wrongly to
  remove the extra elements, and could cause a crash.

git-svn-id: https://svn.tinymail.org/svn/tinymail/trunk@3952 d4f517bd-a70b-0410-9f68-c17655437c52
libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-folder.c