forked from pool/perl-XML-LibXML
Accepting request 122259 from home:k0da:ppc
- STRLEN has 64 bits here and int has 32, so the (int*) cast in XML::LibXML::Document::toStringHTML() makes htmlDocDumpMemory() store the 32-bit length of the result into a 64-bit variable. Depending on the endianness, it either works OK (LE) or corrupts the variable (BE) Just use an 'int' instead, and cast it to an STRLEN later in the newSVpvn() call. OBS-URL: https://build.opensuse.org/request/show/122259 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-XML-LibXML?expand=0&rev=36
This commit is contained in:
@@ -1,3 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri May 25 08:40:07 UTC 2012 - dvaleev@suse.com
|
||||
|
||||
- STRLEN has 64 bits here and int has 32, so the (int*) cast in
|
||||
XML::LibXML::Document::toStringHTML() makes htmlDocDumpMemory() store
|
||||
the 32-bit length of the result into a 64-bit variable. Depending on
|
||||
the endianness, it either works OK (LE) or corrupts the variable (BE)
|
||||
|
||||
Just use an 'int' instead, and cast it to an STRLEN later in the
|
||||
newSVpvn() call.
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 16 15:20:35 UTC 2012 - dvaleev@suse.com
|
||||
|
||||
|
Reference in New Issue
Block a user