[ python-Bugs-925152 ] buffer problem in pyexpat.c(xmlparse_GetInputContext)

SourceForge.net noreply at sourceforge.net
Fri Mar 4 15:41:47 CET 2005


Bugs item #925152, was opened at 2004-03-29 08:47
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=925152&group_id=5470

Category: XML
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 7
Submitted By: Tobias Sargeant (tobiasjs)
Assigned to: Martin v. Löwis (loewis)
Summary: buffer problem in pyexpat.c(xmlparse_GetInputContext)

Initial Comment:
xmlparse_GetInputContext doesn't adjust the bounds of the 
substring it returns, leading to the python string result hanging off 
one or more ends of the buffer & associated nastiness.

2 line fix attached.

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

>Comment By: Martin v. Löwis (loewis)
Date: 2005-03-04 15:41

Message:
Logged In: YES 
user_id=21627

Thanks for the patch. This was just resubmitted as #1118602,
which I have
applied. Your patch also checks whether offset is negative;
I believe this cannot happen.

Committed as

pyexpat.c 2.90 and 2.89.2.1
NEWS 1.1264 and 1.1193.2.31

Sorry this took so long; it would have caught my attention
earlier if it was in the patches tracker, not the bugs tracker.


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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=925152&group_id=5470


More information about the Python-bugs-list mailing list