[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:19:27 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:                     closed
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:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-05-30 07:23 CDT
Last Modified:              2009-05-30 15:19 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).
====================================================================== 

---------------------------------------------------------------------- 
 (0105801) svnbot (reporter) - 2009-05-30 15:19
 https://issues.asterisk.org/view.php?id=15232#c105801 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 198384

_U  branches/1.6.0/
U   branches/1.6.0/res/res_jabber.c

------------------------------------------------------------------------
r198384 | seanbright | 2009-05-30 15:19:27 -0500 (Sat, 30 May 2009) | 20
lines

Merged revisions 198375 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r198375 | seanbright | 2009-05-30 16:11:33 -0400 (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=198384 

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




More information about the asterisk-bugs mailing list