1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
From: sungta <tadinhsung@gmail.com>
Date: Wed, 12 Jul 2017 17:42:33 +0700
Subject: [4/8] Update ufa.t
Origin: https://github.com/shlomif/perl-XML-LibXML/commit/6c437bef155bf9146ac65be31052b72eda718b11
Bug-Debian: https://bugs.debian.org/866676
Bug-Debian-Security: https://security-tracker.debian.org/tracker/CVE-2017-10672
Bug: https://rt.cpan.org/Public/Bug/Display.html?id=122246
---
t/ufa.t | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/t/ufa.t b/t/ufa.t
index 0ebbbf2..fce4489 100644
--- a/t/ufa.t
+++ b/t/ufa.t
@@ -1,13 +1,12 @@
#test bug use after free in function replaceChild
-use strict;
-use warnings;
use Test::More;
use XML::LibXML;
+
BEGIN { $| = 1 }
my $data='<mipu94><pwn4fun><ufanode>-------------------------------------------------------tadinhsung-at-gmail-dot-com-----------------------------------------------------</ufanode></pwn4fun></mipu94>';
-
my $parser = XML::LibXML->new();
my $info = $parser->load_xml(string=>$data) or die;
my $root = $info->findnodes("mipu94")->[0];
my $ufanode = $root->findnodes("pwn4fun/ufanode")->[0];
ok(!$root->replaceChild($ufanode,$ufanode),"Test UFA in replaceChild");
+done_testing();
--
2.15.0.rc2
|