The following issue has been CLOSED 
====================================================================== 
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:                   trivial
Priority:                   normal
Status:                     closed
target:                      
Resolution:                 won't fix
Fixed in Version:           
====================================================================== 
Date Submitted:             08-May-12 09:59 CEST
Last Modified:              06-Sep-12 09:22 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                                    
09-May-12 04:44  baobab         Issue Monitored: baobab                      
06-Sep-12 09:22  paul           Severity                 major => trivial    
06-Sep-12 09:22  paul           Status                   new => closed       
06-Sep-12 09:22  paul           Resolution               open => won't fix   
06-Sep-12 09:22  paul           Additional Information Updated                  
 
======================================================================

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev

Reply via email to