[OpenSER-Devel] [ openser-Patches-1874970 ] patch dbtext to properly handle DB_BLOB data
SourceForge.net
noreply at sourceforge.net
Fri Jan 18 19:09:37 UTC 2008
Patches item #1874970, was opened at 2008-01-18 11:09
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743022&aid=1874970&group_id=139143
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: ver devel
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Chris Heiser (cheiser)
Assigned to: Nobody/Anonymous (nobody)
Summary: patch dbtext to properly handle DB_BLOB data
Initial Comment:
dbtext suffers from using strncpy when retrieving DB_STR, DB_STRING, and DB_BLOB data. This of course causes an issue with DB_BLOB as stdncpy won't copy the entire entry if it contans nulls. Since dbtext checks the string length when a DB_STRING is added and corrects for this, the same method for adding an entry to dbtext should be used for retrieving one (memcpy).
This change allows modules like CPL to work with dbtext if the table colums are defined as blob.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743022&aid=1874970&group_id=139143
More information about the Devel
mailing list