commit 4fa57791930ea07ede9070d3923613b51ed871fc
Author: Oswald Buddenhagen <[email protected]>
Date: Sun Dec 15 12:46:03 2013 +0100
avoid array underflow in IMAP LIST .lock workaround
suggested by Mark Wielaard <[email protected]>.
fwiw, the workaround really is still necessary with panda imap ...
src/drv_imap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/drv_imap.c b/src/drv_imap.c
index edef457..2f1f2b1 100644
--- a/src/drv_imap.c
+++ b/src/drv_imap.c
@@ -1094,7 +1094,7 @@ parse_list_rsp_p2( imap_store_t *ctx, list_t *list, char
*cmd ATTR_UNUSED )
goto skip;
}
}
- if (!memcmp( arg + strlen( arg ) - 5, ".lock", 5 )) /* workaround
broken servers */
+ if ((l = strlen( arg )) >= 5 && !memcmp( arg + l - 5, ".lock", 5 )) /*
workaround broken servers */
goto skip;
if (map_name( arg, (char **)&narg, offsetof(string_list_t, string),
ctx->delimiter, "/") < 0) {
warn( "IMAP warning: ignoring mailbox %s (reserved character
'/' in name)\n", arg );
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel