[reportlab-users] new pyRXP

Stuart Bishop reportlab-users@reportlab.com
Wed, 9 Apr 2003 13:14:50 +1000


--Apple-Mail-2-683929921
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed


On Thursday, April 3, 2003, at 11:06  PM, Robin Becker wrote:

> I have added in a bunch of patches and changes designed to do
>
> * synchronize with rxp version 1.3.0
> * allow for building as a 16 bit version (based on Stuart Bishop's 
> patch).
>
> This is labelled 0.97.

Looking good at my end. The only packaged version of this I could find
btw was the daily pyRXP CVS snapshot (in case you were hoping for a 
wider
distribution).

> When you run setup.py build/install it now creates something called 
> pyRXPU as well
> as pyRXP in Python 2.0 and above.

setup.py duplicates the rxp source files for the 16 bit build. You
might want to remove them in a try: finally clause, as if I do a
'sudo python setup.py install', they end up being owned by root. Or only
copy the files if the dest file doesn't exist or is out of date.

There is still a double free around, and I can trigger it with my
test suite. It seems to be in the parser cleanup routines. I'll have
a closer look at this when I get a chance, but anyone more familiar
with malloc debugging and the time is welcome to do it for me :-)
I've attached the test cases that can trigger the issue in case anyone
is feeling enthusiastic. This particular problem should only bite people
who are parsing XML from untrusted sources since it takes particularly
broken XML to trigger the malloc errors as far as I can tell.


--Apple-Mail-2-683929921
Content-Disposition: attachment;
	filename=001.xml
Content-Transfer-Encoding: quoted-printable
Content-Type: application/octet-stream;
	x-unix-mode=0664;
	name="001.xml"

<!DOCTYPE=20doc=20SYSTEM=20"001.ent">=0D=0A<doc></doc>=0D=0A=

--Apple-Mail-2-683929921
Content-Disposition: attachment;
	filename=001.ent
Content-Transfer-Encoding: quoted-printable
Content-Type: application/octet-stream;
	x-unix-mode=0664;
	name="001.ent"

<!ELEMENT=20doc=20EMPTY>=0D=0A<!ENTITY=20%=20e=20"<!--">=0D=0A%e;=20-->=0D=
=0A=

--Apple-Mail-2-683929921
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed



-- 
Stuart Bishop <zen@shangri-la.dropbear.id.au>
http://shangri-la.dropbear.id.au/


--Apple-Mail-2-683929921--