-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add components-sanitizers.sh #135
base: development
Are you sure you want to change the base?
Add components-sanitizers.sh #135
Conversation
36fc358
to
9997460
Compare
9997460
to
a406172
Compare
This commit adds multiple sanitizer components to TF-PSA-Crypto similar to those found in Mbed TLS. Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
This commit removes unnecessary components such as ssl-opt.sh, compat.sh and context-info.sh Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
a406172
to
e7e54cb
Compare
This commit adds a way to generate the generated files necessary for compling the memsan test case. Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only have one question/curiosity, but a part from that I'm fine with the current status.
cd $OUT_OF_SOURCE_DIR | ||
cmake -DCMAKE_C_COMPILER=clang -DGEN_FILES=ON "$TF_PSA_CRYPTO_ROOT_DIR" | ||
make | ||
|
||
$TF_PSA_CRYPTO_ROOT_DIR/scripts/config.py set MBEDTLS_TEST_CONSTANT_FLOW_MEMSAN | ||
cmake -DCMAKE_C_COMPILER=clang -DGEN_FILES=OFF -DCMAKE_BUILD_TYPE:String=MemSan "$TF_PSA_CRYPTO_ROOT_DIR" | ||
make |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please apologize for the potentially dumb question. IIUC one possible reason for which we are not using a single cmake
call here which both generates files and also enables MemSan is that we only want MemSan to be active on the library files, not on the test ones. Is my assumption correct?
This commit adds multiple sanitizer components to TF-PSA-Crypto similar to those found in Mbed TLS. Closes #130
PR checklist
Please remove the segment/s on either side of the | symbol as appropriate, and add any relevant link/s to the end of the line.
If the provided content is part of the present PR remove the # symbol.
Notes for the submitter
Please refer to the contributing guidelines, especially the
checklist for PR contributors.
Help make review efficient: