Control: tags -1 patch
I am uploading a NMU to fix this. The debdiff is attached.
diff -Nru rust-x509-parser-0.17.0/debian/changelog rust-x509-parser-0.17.0/debian/changelog --- rust-x509-parser-0.17.0/debian/changelog 2025-03-10 20:11:28.000000000 +0100 +++ rust-x509-parser-0.17.0/debian/changelog 2025-05-16 08:25:17.000000000 +0200 @@ -1,3 +1,10 @@ +rust-x509-parser (0.17.0-4.1) unstable; urgency=medium + + * Non-maintainer upload + * tests: Use usize::MAX instead of 64 bit literal (Closes: #1103098) + + -- Bastian Germann <b...@debian.org> Fri, 16 May 2025 08:25:17 +0200 + rust-x509-parser (0.17.0-4) unstable; urgency=medium * add patch 1001 to include certs used in tests diff -Nru rust-x509-parser-0.17.0/debian/patches/1002-tests-Use-usize-MAX-instead-of-64-bit-literal.patch rust-x509-parser-0.17.0/debian/patches/1002-tests-Use-usize-MAX-instead-of-64-bit-literal.patch --- rust-x509-parser-0.17.0/debian/patches/1002-tests-Use-usize-MAX-instead-of-64-bit-literal.patch 1970-01-01 01:00:00.000000000 +0100 +++ rust-x509-parser-0.17.0/debian/patches/1002-tests-Use-usize-MAX-instead-of-64-bit-literal.patch 2025-05-16 08:25:17.000000000 +0200 @@ -0,0 +1,18 @@ +Description: tests: Use usize::MAX instead of 64 bit literal + On 32 bit systems, the 64 bit value does not fit into the literal. +Author: Bastian Germann <b...@debian.org> +Forwarded: no +Last-Update: 2025-05-16 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/tests/test01.rs ++++ b/tests/test01.rs +@@ -8,7 +8,7 @@ fn test01() { + + fn parser02(input: &[u8]) -> nom::IResult<&[u8], ()> { + let (_hdr, input) = take(1_usize)(input)?; +- let (_data, input) = take(18_446_744_073_709_551_615_usize)(input)?; ++ let (_data, input) = take(usize::MAX)(input)?; + Ok((input, ())) + } + diff -Nru rust-x509-parser-0.17.0/debian/patches/series rust-x509-parser-0.17.0/debian/patches/series --- rust-x509-parser-0.17.0/debian/patches/series 2025-03-10 20:08:57.000000000 +0100 +++ rust-x509-parser-0.17.0/debian/patches/series 2025-05-16 08:25:17.000000000 +0200 @@ -1 +1,2 @@ 1001_include_assets.patch +1002-tests-Use-usize-MAX-instead-of-64-bit-literal.patch