Package: libxml-libxml-perl / 2.0207+dfsg+really+2.0134-6

Metadata

Package Version Patches format
libxml-libxml-perl 2.0207+dfsg+really+2.0134-6 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
fail build no libxml2.patch | (download)

Makefile.PL | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 trigger build failure when libxml2 is not found
disable_runtime version_warning.patch | (download)

LibXML.pm | 18 11 + 7 - 0 !
1 file changed, 11 insertions(+), 7 deletions(-)

 disable the runtime libxml2 version check
test_against_runtime version.patch | (download)

t/48_reader_undef_warning_on_empty_str_rt106830.t | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 check the runtime version of libxml2 not the one the package was built against
0001 t 35huge_mode.t fix test with libxml2 2.11.patch | (download)

t/35huge_mode.t | 65 51 + 14 - 0 !
1 file changed, 51 insertions(+), 14 deletions(-)

 [patch] t/35huge_mode.t: fix test with libxml2 2.11

libxml 2.11 made improved parsing enough to not fail our test:

0001 initialize xmlValidCtxt.patch | (download)

LibXML.xs | 17 2 + 15 - 0 !
1 file changed, 2 insertions(+), 15 deletions(-)

 [patch] initialize xmlvalidctxt

The variable cvp is stored on the stack and is uninitialized.  So
the field ctxt->flags in valid.c xmlIsStreaming() contains random
data.  The logic of xmlIsStreaming() can do an invalid cast and
pointer dereference pctxt->parseMode and may crash there.  Use
memset() to pass correct zero flags in xmlValidCtxt cvp variable
down to xmlValidateDocument().

0001 libxml mm Fix function prototypes in function pointe.patch | (download)

perl-libxml-mm.c | 6 3 + 3 - 0 !
1 file changed, 3 insertions(+), 3 deletions(-)

 [patch] libxml-mm: fix function prototypes in function pointers

This is now detected with latest clang16+

Fixes
error: incompatible function pointer types passing 'void (void *, void *, xmlChar *)' (aka 'void (void *, void *, unsigned char *)') to parameter of type 'xmlHashScanner' (aka 'void (*)(void *, void *, const unsigned char *)') [-Wincompatible-function-pointer-types]
                xmlHashScan(r, PmmRegistryDumpHashScanner, NULL);

Signed-off-by: Khem Raj <raj.khem@gmail.com>

Bug-Debian: https://bugs.debian.org/1075219


87.diff | (download)

t/02parse.t | 18 7 + 11 - 0 !
t/08findnodes.t | 8 7 + 1 - 0 !
t/16docnodes.t | 7 6 + 1 - 0 !
3 files changed, 20 insertions(+), 13 deletions(-)

 fix test suite with libxml2 2.13.0
 (shortened to the tests we actually run)
libxml2.14 disable tests.diff | (download)

t/35huge_mode.t | 7 4 + 3 - 0 !
1 file changed, 4 insertions(+), 3 deletions(-)

 skip tests failing with libxml 2.14.x
 (shortened to the tests we actually run)