Skip to content

Commit 3654c91

Browse files
committed
p5-XML-Parser: update to 2.48.
Security fix release. 2.48 2026-03-18 (by Todd Rinaldo) Fixes: - GH #39 Fix off-by-one heap buffer overflow in st_serial_stack growth check (CVE-2006-10003) - GH #64 Fix buffer overflow in parse_stream when filehandle has :utf8 layer (CVE-2006-10002) - GH #27 Prevent symbol table auto-vivification in Expat::parse - GH #30 Set UTF-8 flag on sysid in ExternEnt handler and fix Debug style for non-ASCII chars - GH #36 Prevent position overflow for large files in line/column/error paths - GH #41 Fix xml_escape to escape all occurrences of quote characters - GH #44 Fix lexical filehandle handling in ExternEnt handler return values - GH #45 Clean up compiler warnings in Expat.xs - GH #47 Fix routing of character data after root element to Char handler - GH #48 Fix current_byte overflow for large XML files on 32-bit perl - GH #50 Propagate xpcroak errors in Subs style instead of swallowing them - GH #53 Fix parameter entity references in internal DTD subset breaking handler dispatch - GH #65 Support standard LIBS and INC options in Makefile.PL; propagate to Expat/Makefile.PL - GH #69 Auto-detect multiarch library paths for expat - GH #72 Localize $_ in Style::Stream to avoid read-only modification - GH #76 Use system tmpdir for temp files in Devel::CheckLib - GH #83 Use pkg-config to auto-detect expat in non-standard locations - GH #90 Improve "Couldn't find your C compiler" error message - GH #100 Clean up MSVC assertlib .obj files on Windows - GH #103 Skip -rpath on Mac OS X 10.4 and earlier - GH #106 Fix freeing of the content model using XML_FreeContentModel - GH #148 XML-escape attribute values in Stream style default output - GH #149 Restore Base after parsefile() to prevent context pollution on reuse - GH #152 Fix SYNOPSIS handler name Characters -> Text in Stream.pm - GH #153 Fix variable interpolation in xpcarp() and setHandlers() error messages - GH #157 Restore Perl 5.8 and 5.10 test compatibility - GH #160 Initialize st_serial_stacksize after allocation in Expat.xs - GH #162 Replace local $^W=0 with no warnings 'numeric' in Expat.pm - GH #164 Add missing ENTER/SAVETMPS scope to notationDecl callback - GH #165 Replace each() with keys() to avoid iterator side effects - GH #166 Remove no-op study() call in xml_escape Improvements: - GH #38 Add G_VOID flag to all void-context perl_call_sv/method/pv calls - GH #46 Add UseForeignDTD option for documents without DOCTYPE - GH #49 Add current_length method to XML::Parser::Expat - GH #54 Add hint about unescaped characters for invalid token errors - GH #67 Add NoLWP to expat capability probes for consistent skip logic - GH #70 Enhance parse exceptions with XML context when ErrorContext is set - GH #71 Move encoding maps from PERL5LIB to File::ShareDir - GH #73 XMLDecl handler now returns "yes"/"no" for standalone attribute - GH #101 Make LWP::UserAgent a recommended dependency, not required - GH #102 Expose expat security APIs: BillionLaughs and ReparseDeferral - GH #167 Modernize Perl pragmas across modules Documentation: - GH #55 Add ERROR HANDLING section and improve parse error documentation - GH #56 Clarify Char handler splitting behavior with example and docs - GH #74 Document predefined entity expansion in Tree style - GH #161 Fix Standalone parameter description in README Maintenance: - GH #25 Add Debug style multibyte character regression test - GH #28 Add tests for globref and lexical filehandle return values in ExternEnt handler - GH #31 Add encoding tests for windows-1251, koi8-r, windows-1255, and ibm866 - GH #51 Skip external DTD tests when expat lacks parameter entity support - GH #150 Replace Artistic-2.0 LICENSE with correct Perl dual license - GH #151 Modernize xpcroak.t from Test.pm to Test::More - GH #155 Modernize CI workflow inspired by YAML-Syck - GH #159 Install libexpat1-dev in perl-tester CI containers - GH #163 Replace defunct Travis CI badge with GitHub Actions - GH #168 Update META_MERGE URLs to cpan-authors organization - Integrate Windows into overall CI test run
1 parent f979e7c commit 3654c91

3 files changed

Lines changed: 15 additions & 23 deletions

File tree

textproc/p5-XML-Parser/Makefile

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
# $NetBSD: Makefile,v 1.60 2025/07/04 08:48:40 wiz Exp $
1+
# $NetBSD: Makefile,v 1.61 2026/03/19 15:22:30 wiz Exp $
22

3-
DISTNAME= XML-Parser-2.47
3+
DISTNAME= XML-Parser-2.48
44
PKGNAME= p5-${DISTNAME}
5-
PKGREVISION= 2
65
CATEGORIES= textproc perl5
7-
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=XML/}
6+
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../../authors/id/T/TO/TODDR/}
87

98
MAINTAINER= bad@NetBSD.org
109
HOMEPAGE= https://metacpan.org/release/XML-Parser
@@ -13,11 +12,19 @@ LICENSE= ${PERL5_LICENSE}
1312

1413
DEPENDS+= p5-libwww-[0-9]*:../../www/p5-libwww
1514
TOOL_DEPENDS+= p5-Devel-CheckLib-[0-9]*:../../devel/p5-Devel-CheckLib
15+
DEPENDS+= p5-File-ShareDir-[0-9]*:../../devel/p5-File-ShareDir
16+
TOOL_DEPENDS+= p5-File-ShareDir-Install-[0-9]*:../../devel/p5-File-ShareDir-Install
1617

1718
PERL5_PACKLIST= auto/XML/Parser/.packlist
1819
MAKE_PARAMS+= EXPATLIBPATH=${BUILDLINK_PREFIX.expat}/lib
1920
MAKE_PARAMS+= EXPATINCPATH=${BUILDLINK_PREFIX.expat}/include
2021

22+
# as of 2.48
23+
# Failed 2/42 test programs. 0/321 subtests failed.
24+
.if make(test)
25+
ALLOW_NETWORK_ACCESS= yes
26+
.endif
27+
2128
post-extract:
2229
${RM} -f ${WRKSRC}/inc/Devel/CheckLib.pm
2330

textproc/p5-XML-Parser/distinfo

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
$NetBSD: distinfo,v 1.18 2024/04/25 17:59:46 schmonz Exp $
1+
$NetBSD: distinfo,v 1.19 2026/03/19 15:22:30 wiz Exp $
22

3-
BLAKE2s (XML-Parser-2.47.tar.gz) = 0b0aa25edc6148fa29f40ecc1e1f5573f183afa150a6144fecd9c2343b6f3c3a
4-
SHA512 (XML-Parser-2.47.tar.gz) = 3f9de53341bc85b87c88ad31e04b13f1f95516eec0d7e5fd1c1a3b3e66a91ca3d4de7c649978599219a4d4372f6218764ab5e1805b7155b5ca200006e1b0908f
5-
Size (XML-Parser-2.47.tar.gz) = 279029 bytes
6-
SHA1 (patch-MANIFEST) = 4978528649f510331ee50a904774a86c9a80d4af
3+
BLAKE2s (XML-Parser-2.48.tar.gz) = 3b832421149a33f90c6777a2bef7d9e8bf1887a7553d9ab3e2c303fe8b367a0a
4+
SHA512 (XML-Parser-2.48.tar.gz) = a8d67819e4e9eb278c120b31fdd59d510f71782bf7bc13153dbabbd1dbb24771c71fe59d83fa1c6c550853a5d7639922c9c44eee2cd6f7bdd5cc960161e721e2
5+
Size (XML-Parser-2.48.tar.gz) = 310359 bytes

textproc/p5-XML-Parser/patches/patch-MANIFEST

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)