mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-26 17:31:38 +00:00
Merge pull request #114 from PQClean/sanitizer_fixes
Clean up some aspects of the tests and made NTRU-HPS code files not executable.
This commit is contained in:
commit
f17d739181
0
crypto_kem/ntruhps2048509/clean/api.h
Executable file → Normal file
0
crypto_kem/ntruhps2048509/clean/api.h
Executable file → Normal file
0
crypto_kem/ntruhps2048509/clean/crypto_sort.c
Executable file → Normal file
0
crypto_kem/ntruhps2048509/clean/crypto_sort.c
Executable file → Normal file
0
crypto_kem/ntruhps2048509/clean/crypto_sort.h
Executable file → Normal file
0
crypto_kem/ntruhps2048509/clean/crypto_sort.h
Executable file → Normal file
0
crypto_kem/ntruhps2048509/clean/kem.c
Executable file → Normal file
0
crypto_kem/ntruhps2048509/clean/kem.c
Executable file → Normal file
0
crypto_kem/ntruhps2048509/clean/owcpa.c
Executable file → Normal file
0
crypto_kem/ntruhps2048509/clean/owcpa.c
Executable file → Normal file
0
crypto_kem/ntruhps2048509/clean/owcpa.h
Executable file → Normal file
0
crypto_kem/ntruhps2048509/clean/owcpa.h
Executable file → Normal file
0
crypto_kem/ntruhps2048509/clean/pack3.c
Executable file → Normal file
0
crypto_kem/ntruhps2048509/clean/pack3.c
Executable file → Normal file
0
crypto_kem/ntruhps2048509/clean/packq.c
Executable file → Normal file
0
crypto_kem/ntruhps2048509/clean/packq.c
Executable file → Normal file
0
crypto_kem/ntruhps2048509/clean/params.h
Executable file → Normal file
0
crypto_kem/ntruhps2048509/clean/params.h
Executable file → Normal file
0
crypto_kem/ntruhps2048509/clean/poly.c
Executable file → Normal file
0
crypto_kem/ntruhps2048509/clean/poly.c
Executable file → Normal file
0
crypto_kem/ntruhps2048509/clean/poly.h
Executable file → Normal file
0
crypto_kem/ntruhps2048509/clean/poly.h
Executable file → Normal file
0
crypto_kem/ntruhps2048509/clean/sample.c
Executable file → Normal file
0
crypto_kem/ntruhps2048509/clean/sample.c
Executable file → Normal file
0
crypto_kem/ntruhps2048509/clean/sample.h
Executable file → Normal file
0
crypto_kem/ntruhps2048509/clean/sample.h
Executable file → Normal file
0
crypto_kem/ntruhps2048509/clean/verify.c
Executable file → Normal file
0
crypto_kem/ntruhps2048509/clean/verify.c
Executable file → Normal file
0
crypto_kem/ntruhps2048509/clean/verify.h
Executable file → Normal file
0
crypto_kem/ntruhps2048509/clean/verify.h
Executable file → Normal file
@ -53,29 +53,32 @@ def check_functest_sanitizers(implementation):
|
|||||||
else:
|
else:
|
||||||
print("Supported platform: {}".format(platform.machine()))
|
print("Supported platform: {}".format(platform.machine()))
|
||||||
|
|
||||||
helpers.ensure_available('valgrind')
|
|
||||||
helpers.make('clean-scheme', 'functest',
|
helpers.make('clean-scheme', 'functest',
|
||||||
TYPE=implementation.scheme.type,
|
TYPE=implementation.scheme.type,
|
||||||
SCHEME=implementation.scheme.name,
|
SCHEME=implementation.scheme.name,
|
||||||
IMPLEMENTATION=implementation.name,
|
IMPLEMENTATION=implementation.name,
|
||||||
EXTRAFLAGS='-fsanitize=address,undefined',
|
EXTRAFLAGS='-g -fsanitize=address,undefined',
|
||||||
working_dir=os.path.join('..', 'test'),
|
working_dir=os.path.join('..', 'test'),
|
||||||
env=env)
|
env=env)
|
||||||
helpers.run_subprocess(
|
try:
|
||||||
[os.path.join('..', 'bin', 'functest_{}_{}{}'.format(
|
helpers.run_subprocess(
|
||||||
implementation.scheme.name,
|
[os.path.join('..', 'bin', 'functest_{}_{}{}'.format(
|
||||||
implementation.name,
|
implementation.scheme.name,
|
||||||
'.exe' if os.name == 'nt' else ''
|
implementation.name,
|
||||||
))],
|
'.exe' if os.name == 'nt' else ''
|
||||||
os.path.join('..', 'bin'),
|
))],
|
||||||
env=env,
|
os.path.join('..', 'bin'),
|
||||||
)
|
env=env,
|
||||||
# Remove files with ASAN library compiled in
|
)
|
||||||
helpers.make('clean-scheme',
|
except AssertionError as e:
|
||||||
TYPE=implementation.scheme.type,
|
raise e
|
||||||
SCHEME=implementation.scheme.name,
|
finally:
|
||||||
IMPLEMENTATION=implementation.name,
|
# Remove files with ASAN library compiled in
|
||||||
working_dir=os.path.join('..', 'test'))
|
helpers.make('clean-scheme',
|
||||||
|
TYPE=implementation.scheme.type,
|
||||||
|
SCHEME=implementation.scheme.name,
|
||||||
|
IMPLEMENTATION=implementation.name,
|
||||||
|
working_dir=os.path.join('..', 'test'))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
Reference in New Issue
Block a user