Bugs item #1811823, was opened at 2007-10-11 16:17
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=637564&aid=1811823&group_id=104305
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: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: David W. Burhans (dwburhans)
Assigned to: Nobody/Anonymous (nobody)
Summary: 2 xp_parser.c issues
Initial Comment:
I've identified two bugs the xp_parser.c file and one optimization suggestion.
Bugs:
xp_set_xml_buffer_from_file() will leave the file open when index >=
XP_MAX_FILE_LEN within the while loop.
xp_set_xml_buffer_from_string() strlen() should return a negative value if the
parameter "str" is null.
Optimization Suggestion:
xp_get_content_length() may be optimized by nesting the consecutive if
statements (for content-length).
Ex.
L_ctl_hdr = strstr(P_buffer, "\nContent-Length:");
if (!L_ctl_hdr)
{
L_ctl_hdr = strstr(P_buffer, "\nContent-length:");
if (!L_ctl_hdr)
{
L_ctl_hdr = strstr(P_buffer, "\ncontent-Length:");
...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=637564&aid=1811823&group_id=104305
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users