The following issue has been SUBMITTED. ====================================================================== http://www.dbmail.org/mantis/view.php?id=969 ====================================================================== Reported By: baobab Assigned To: ====================================================================== Project: DBMail Issue ID: 969 Category: Database layer Reproducibility: always Severity: major Priority: normal Status: new target: ====================================================================== Date Submitted: 08-May-12 09:59 CEST Last Modified: 08-May-12 09:59 CEST ====================================================================== Summary: bad usage of snprintf() for LIKE queries Description: at at least one place (found mine in dbmail-mailbox.c line 1228), we can see the following :
snprintf(partial, DEF_FRAGSIZE, "%%%s%%", s->search); if "s->search" is larger than "DEF_FRAGSIZE", the closing "%" never get a chance to show in the query. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 08-May-12 09:59 baobab New Issue ====================================================================== _______________________________________________ Dbmail-dev mailing list Dbmail-dev@dbmail.org http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev