From f35499876cd850bd521e538c58a340f1f72789c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rubens=20Brand=C3=A3o?= Date: Tue, 21 Apr 2026 11:55:28 -0300 Subject: [PATCH 1/2] require restrictive feature to enforce root-info full parsing --- src/id0/root_info.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/id0/root_info.rs b/src/id0/root_info.rs index 99a2623..b6503b5 100644 --- a/src/id0/root_info.rs +++ b/src/id0/root_info.rs @@ -275,7 +275,10 @@ impl RootInfo { match version { // TODO old version may contain extra data at the end with unknown purpose ..=699 => {} - 700.. => ensure!(input.is_empty(), "Data left after the IDBParam",), + 700.. => { + #[cfg(feature = "restrictive")] + ensure!(input.is_empty(), "Data left after the IDBParam",), + } } Ok(param) } From d52874ba0ea48ebd7aa1c35dac170e95f0e7d5e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rubens=20Brand=C3=A3o?= Date: Tue, 21 Apr 2026 11:58:49 -0300 Subject: [PATCH 2/2] fix formating --- src/id0/root_info.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/id0/root_info.rs b/src/id0/root_info.rs index b6503b5..f709642 100644 --- a/src/id0/root_info.rs +++ b/src/id0/root_info.rs @@ -277,7 +277,7 @@ impl RootInfo { ..=699 => {} 700.. => { #[cfg(feature = "restrictive")] - ensure!(input.is_empty(), "Data left after the IDBParam",), + ensure!(input.is_empty(), "Data left after the IDBParam"); } } Ok(param)