Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: DBMail: dev

[DBMail 0000979]: dbmail-util crash if the part_depth > 128

 

 

DBMail dev RSS feed   Index | Next | Previous | View Threaded


bugtrack at dbmail

Aug 6, 2012, 12:40 AM

Post #1 of 3 (257 views)
Permalink
[DBMail 0000979]: dbmail-util crash if the part_depth > 128

The following issue has been SUBMITTED.
======================================================================
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 09:40 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.

======================================================================

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
======================================================================

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev


bugtrack at dbmail

Aug 6, 2012, 3:27 AM

Post #2 of 3 (243 views)
Permalink
[DBMail 0000979]: dbmail-util crash if the part_depth > 128 [In reply to]

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 [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev


bugtrack at dbmail

Aug 6, 2012, 3:28 AM

Post #3 of 3 (242 views)
Permalink
[DBMail 0000979]: dbmail-util crash if the part_depth > 128 [In reply to]

The following issue has been RESOLVED.
======================================================================
http://www.dbmail.org/mantis/view.php?id=979
======================================================================
Reported By: vampyre
Assigned To: paul
======================================================================
Project: DBMail
Issue ID: 979
Category: General
Reproducibility: always
Severity: crash
Priority: normal
Status: resolved
target:
Resolution: fixed
Fixed in Version: 3.0.3
======================================================================
Date Submitted: 06-Aug-12 09:40 CEST
Last Modified: 06-Aug-12 12:28 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
06-Aug-12 12:28 paul Assigned To => paul
06-Aug-12 12:28 paul Status new => resolved
06-Aug-12 12:28 paul Resolution open => fixed
06-Aug-12 12:28 paul Category Command-Line programs
(dbmail-users, dbmail-util) => General
06-Aug-12 12:28 paul Fixed in Version => 3.0.3
======================================================================

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev

DBMail dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.