Merge pull request #114 from PQClean/sanitizer_fixes

Clean up some aspects of the tests and made NTRU-HPS code files not executable.
Šī revīzija ir iekļauta:
Thom Wiggers 2019-04-16 13:37:13 +02:00 revīziju iesūtīja GitHub
revīzija f17d739181
Šim parakstam datu bāzē netika atrasta zināma atslēga
GPG atslēgas ID: 4AEE18F83AFDEB23
16 mainīti faili ar 20 papildinājumiem un 17 dzēšanām

0
crypto_kem/ntruhps2048509/clean/api.h Izpildāmais fails → Parasts fails
Parādīt failu

0
crypto_kem/ntruhps2048509/clean/crypto_sort.c Izpildāmais fails → Parasts fails
Parādīt failu

0
crypto_kem/ntruhps2048509/clean/crypto_sort.h Izpildāmais fails → Parasts fails
Parādīt failu

0
crypto_kem/ntruhps2048509/clean/kem.c Izpildāmais fails → Parasts fails
Parādīt failu

0
crypto_kem/ntruhps2048509/clean/owcpa.c Izpildāmais fails → Parasts fails
Parādīt failu

0
crypto_kem/ntruhps2048509/clean/owcpa.h Izpildāmais fails → Parasts fails
Parādīt failu

0
crypto_kem/ntruhps2048509/clean/pack3.c Izpildāmais fails → Parasts fails
Parādīt failu

0
crypto_kem/ntruhps2048509/clean/packq.c Izpildāmais fails → Parasts fails
Parādīt failu

0
crypto_kem/ntruhps2048509/clean/params.h Izpildāmais fails → Parasts fails
Parādīt failu

0
crypto_kem/ntruhps2048509/clean/poly.c Izpildāmais fails → Parasts fails
Parādīt failu

0
crypto_kem/ntruhps2048509/clean/poly.h Izpildāmais fails → Parasts fails
Parādīt failu

0
crypto_kem/ntruhps2048509/clean/sample.c Izpildāmais fails → Parasts fails
Parādīt failu

0
crypto_kem/ntruhps2048509/clean/sample.h Izpildāmais fails → Parasts fails
Parādīt failu

0
crypto_kem/ntruhps2048509/clean/verify.c Izpildāmais fails → Parasts fails
Parādīt failu

0
crypto_kem/ntruhps2048509/clean/verify.h Izpildāmais fails → Parasts fails
Parādīt failu

Parādīt failu

@ -53,29 +53,32 @@ def check_functest_sanitizers(implementation):
else:
print("Supported platform: {}".format(platform.machine()))
helpers.ensure_available('valgrind')
helpers.make('clean-scheme', 'functest',
TYPE=implementation.scheme.type,
SCHEME=implementation.scheme.name,
IMPLEMENTATION=implementation.name,
EXTRAFLAGS='-fsanitize=address,undefined',
EXTRAFLAGS='-g -fsanitize=address,undefined',
working_dir=os.path.join('..', 'test'),
env=env)
helpers.run_subprocess(
[os.path.join('..', 'bin', 'functest_{}_{}{}'.format(
implementation.scheme.name,
implementation.name,
'.exe' if os.name == 'nt' else ''
))],
os.path.join('..', 'bin'),
env=env,
)
# Remove files with ASAN library compiled in
helpers.make('clean-scheme',
TYPE=implementation.scheme.type,
SCHEME=implementation.scheme.name,
IMPLEMENTATION=implementation.name,
working_dir=os.path.join('..', 'test'))
try:
helpers.run_subprocess(
[os.path.join('..', 'bin', 'functest_{}_{}{}'.format(
implementation.scheme.name,
implementation.name,
'.exe' if os.name == 'nt' else ''
))],
os.path.join('..', 'bin'),
env=env,
)
except AssertionError as e:
raise e
finally:
# Remove files with ASAN library compiled in
helpers.make('clean-scheme',
TYPE=implementation.scheme.type,
SCHEME=implementation.scheme.name,
IMPLEMENTATION=implementation.name,
working_dir=os.path.join('..', 'test'))
if __name__ == '__main__':