A NOTE has been added to this issue. ====================================================================== http://www.dbmail.org/mantis/view.php?id=979 ====================================================================== Reported By: vampyre Assigned To: ====================================================================== Project: DBMail Issue ID: 979 Category: Command-Line programs (dbmail-users, dbmail-util) Reproducibility: always Severity: crash Priority: normal Status: new target: ====================================================================== Date Submitted: 06-Aug-12 09:40 CEST Last Modified: 06-Aug-12 12:27 CEST ====================================================================== Summary: dbmail-util crash if the part_depth > 128 Description: Hello Paul,
Currently there is a part_depth limit in _mime_retrieve (char **blist = g_new0(char *,128)), so when we have part_depth bigger than 128, dbmail-util fails in core. Could you please check if provided path is acceptable. Thank you. ====================================================================== ---------------------------------------------------------------------- (0003472) paul (administrator) - 06-Aug-12 12:27 http://www.dbmail.org/mantis/view.php?id=979#c3472 ---------------------------------------------------------------------- Stanislav, When I wrote that code I didn't expect a mime-depth of 128 to be encountered any time soon. I really don't think we want to trigger an addition, unindexed query every time a message is retrieved. Allocating a char** is not that expensive, so doing a realloc seems a better and faster approach: http://git.dbmail.eu/paul/dbmail/patch/?id=48442525e86d0d21e382124db3b5470d9555f99d Issue History Date Modified Username Field Change ====================================================================== 06-Aug-12 09:40 vampyre New Issue 06-Aug-12 09:40 vampyre File Added: 0001-fix-segfault-in-dbmail-util-caused-by-overflow.patch 06-Aug-12 12:27 paul Note Added: 0003472 ====================================================================== _______________________________________________ Dbmail-dev mailing list Dbmail-dev@dbmail.org http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev