From 5efe449a6af1bb1f77c19bfd913e7506d2234aa9 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Wed, 21 Dec 2022 20:33:30 +0100 Subject: [PATCH] More robust dependency filtering Only remove the MBEDTLS_HAVE_INTnn dependency, not any other dependency that might be present. No behavior change, this is just robustness. Signed-off-by: Gilles Peskine --- scripts/mbedtls_dev/bignum_mod_raw.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/mbedtls_dev/bignum_mod_raw.py b/scripts/mbedtls_dev/bignum_mod_raw.py index 21add3baae..fa95e24fd3 100644 --- a/scripts/mbedtls_dev/bignum_mod_raw.py +++ b/scripts/mbedtls_dev/bignum_mod_raw.py @@ -149,7 +149,9 @@ class BignumModRawConvertRep(bignum_common.ModOperationCommon, # representations, emit a single test case with no dependency # on the limb size. if rep is not bignum_common.ModulusRepresentation.MONTGOMERY: - test_object.dependencies = [] + test_object.dependencies = \ + [dep for dep in test_object.dependencies + if not dep.startswith('MBEDTLS_HAVE_INT')] if test_object.is_valid: yield test_object.create_test_case() if rep is not bignum_common.ModulusRepresentation.MONTGOMERY: