#3646: Problem browsing to IMAP folders
---------------------+---------------------------
Reporter: mancha | Owner: brendan
Type: defect | Status: closed
Priority: major | Milestone:
Component: IMAP | Version: 1.5.21
Resolution: fixed | Keywords: browse folder
---------------------+---------------------------
Changes (by Kevin McCarthy <kevin@…>):
* status: new => closed
* resolution: => fixed
Comment:
In [e635ce43b001209899d82d34ae8e4f33d3305019]:
{{{
#!CommitTicketReference repository=""
revision="e635ce43b001209899d82d34ae8e4f33d3305019"
Remove redundant mbox delimiter check in imap_browse(). (closes #3646)
imap_fix_path() removes duplicate and trailing delimiters, so the check
below it was redundant. This also made it appear list.delim could be
used uninitialized.
Remove the check, but add a check to make sure the "fixed" path has
len>0, to prevent oob accesses of mbox[n-1] below.
Lastly, remove a redundant n=strlen(mbox) inside the initial LIST
processing loop. The mbox isn't changed from above, so there is no
need to rerun strlen.
}}}
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3646#comment:5>
Mutt <http://www.mutt.org/>
The Mutt mail user agent