Gilles Peskine a299043d58 Simplify parsing of integers in .datax files
In the .datax parser, since we're calling strtol() anyway, rely on it for
verification. This makes the .datax parser very slightly more
liberal (leading spaces and '+' are now accepted), and changes the
interpretation of numbers with leading zeros to octal.

Before, an argument like :0123: was parsed as decimal, but an argument like
:0123+1: was parsed as a C expression and hence the leading zero marked an
octal representation. Now, a leading zero is always interpreted according to
C syntax, namely indicating octal. There are no nonzero integer constants
with a leading zero in a .data file, so this does not affect existing test
cases.

In the .datax generator, allow negative arguments to be 'int' (before, they
were systematically treated as 'exp' even though they didn't need to be).

In the .datax parser, validate the range of integer constants. They have to
fit in int32_t. In the .datax generator, use 'exp' instead of 'int' for
integer constants that are out of range.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2023-04-28 13:19:30 +02:00
..
all-in-docker.sh Point to docker images used in the CI 2022-12-16 10:21:11 +01:00
all.sh all.sh: add support function for build_armcc 2023-03-03 18:23:35 +08:00
analyze_outcomes.py Move collect_available_test_cases to check_test_cases.py 2022-01-25 13:32:25 +01:00
basic-build-test.sh Use OPENSSL everywhere, not OPENSSL_CMD 2023-01-10 09:47:09 +01:00
basic-in-docker.sh Point to docker images used in the CI 2022-12-16 10:21:11 +01:00
check_files.py Allow whole Box Drawings range 2023-02-01 13:31:57 +00:00
check_names.py Re-add empty lines that were accidentally omitted in the previous commit. 2023-01-27 16:03:22 +00:00
check_test_cases.py New option to list all test cases 2022-01-25 13:32:32 +01:00
check-doxy-blocks.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
check-generated-files.sh Don't touch the style of generated files 2022-12-19 00:58:25 +01:00
check-python-files.sh Don't use parallel jobs for pylint 2022-10-14 15:34:06 +02:00
depends.py depends.py: remove symbols that are not present in 2.28 2023-02-15 15:19:37 -05:00
docker_env.sh Point to docker images used in the CI 2022-12-16 10:21:11 +01:00
doxygen.sh Fix typos 2023-02-07 07:27:49 +01:00
gen_ctr_drbg.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
gen_gcm_decrypt.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
gen_gcm_encrypt.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
gen_pkcs1_v21_sign_verify.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
generate_bignum_tests.py Remove mbedtls_ prefix from bignum test cases 2023-04-26 22:51:10 +02:00
generate_psa_tests.py Merge pull request #6844 from gilles-peskine-arm/test_suite_psa_crypto_metadata-20221215-2.28 2023-01-27 10:05:04 +01:00
generate_test_code.py Simplify parsing of integers in .datax files 2023-04-28 13:19:30 +02:00
generate-afl-tests.sh Don't use test_suite_mpi as an example 2022-11-09 21:00:28 +01:00
list_internal_identifiers.py Update check_names.py so that identifiers in excluded files are still compared against the output of nm. 2023-01-25 17:10:23 +00:00
list-identifiers.sh Copy check_names.py and friends from development 2021-09-27 20:01:08 +02:00
psa_collect_statuses.py Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
recursion.pl Redo of PR#5345. Fixed spelling and typographical errors found by CodeSpell. 2022-04-28 18:22:20 +01:00
run-test-suites.pl Use .datax for make test, not .data 2022-11-16 10:35:20 +01:00
scripts_path.py Allow tests/scripts/foo.py to import from scripts 2020-12-10 23:16:03 +01:00
set_psa_test_dependencies.py Update PSA crypto test dependencies 2021-03-24 09:26:44 +01:00
tcp_client.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
test_config_script.py Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
test_generate_test_code.py Add line number to a few error messages 2023-04-28 13:19:30 +02:00
test_psa_compliance.py Fix typos prior to release 2022-12-04 16:44:21 +00:00
test_psa_constant_names.py Short-tag AEAD with the nominal length are encoded as nominal AEAD 2022-04-15 16:15:48 +02:00
test_zeroize.gdb Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
test-ref-configs.pl test-ref-configs: clarify configuration-related traces 2022-04-13 11:24:38 +02:00
travis-log-failure.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00