From: sungta <tadinhsung@gmail.com>
Date: Wed, 12 Jul 2017 17:35:09 +0700
Subject: [3/8] Update ufa.t
Origin: https://github.com/shlomif/perl-XML-LibXML/commit/075f314d1b0e6624127d6cc1573c51c9d1c91bc2
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, 4 insertions(+), 1 deletion(-)

diff --git a/t/ufa.t b/t/ufa.t
index ef3ce9d..0ebbbf2 100644
--- a/t/ufa.t
+++ b/t/ufa.t
@@ -1,4 +1,7 @@
 #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>';
@@ -7,4 +10,4 @@ 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];
-$root->replaceChild($ufanode,$ufanode);
\ No newline at end of file
+ok(!$root->replaceChild($ufanode,$ufanode),"Test UFA in replaceChild");
-- 
2.15.0.rc2

