[asterisk-bugs] [Asterisk 0015232]: [patch] XML parse errors related to buffer size, and not handled properly

Asterisk Bug Tracker noreply at bugs.digium.com
Sat May 30 15:11:34 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15232 
====================================================================== 
Reported By:                lp0
Assigned To:                seanbright
====================================================================== 
Project:                    Asterisk
Issue ID:                   15232
Category:                   Resources/res_jabber
Reproducibility:            random
Severity:                   minor
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           1.6.1.0 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-05-30 07:23 CDT
Last Modified:              2009-05-30 15:11 CDT
====================================================================== 
Summary:                    [patch] XML parse errors related to buffer size, and
not handled properly
Description: 
I'm getting XML parse errors with a large roster. Decreasing the buffer
from 4096 to 512 doesn't help but increasing it to 65536 helps (even
although it's still split).

The connection should be dropped on an actual parse error (currently it
just times out because it still thinks it's connecting).
====================================================================== 

---------------------------------------------------------------------- 
 (0105800) svnbot (reporter) - 2009-05-30 15:11
 https://issues.asterisk.org/view.php?id=15232#c105800 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 198375

U   trunk/res/res_jabber.c

------------------------------------------------------------------------
r198375 | seanbright | 2009-05-30 15:11:34 -0500 (Sat, 30 May 2009) | 13
lines

Properly terminate the receive buffer before sending to iksemel.

aji_io_recv takes the maximum number of bytes to read (instead of the
total
buffer size), so we have to subtract 1 from our buffer size.  Without
this, when
we receive packets that are larger than our buffer, iksemel will choke and
things get wonky.

(closes issue https://issues.asterisk.org/view.php?id=15232)
Reported by: lp0
Patches:
      05302009_res_jabber.c.patch uploaded by seanbright (license 71)
Tested by: seanbright, lp0

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=198375 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-05-30 15:11 svnbot         Checkin                                      
2009-05-30 15:11 svnbot         Note Added: 0105800                          
======================================================================




More information about the asterisk-bugs mailing list