nqminds / edgesec

Secure router - reference implementation
https://edgesec.info
MIT License
6 stars 1 forks source link

Compile and test with Address/UndefinedBehaviorSan on FreeBSD #550

Closed aloisklink closed 1 year ago

aloisklink commented 1 year ago

Compile and test with AddressSanitizer and UndefinedBehaviorSanitizer (UBSan) on FreeBSD.

See PRs https://github.com/nqminds/edgesec/pull/540 and https://github.com/nqminds/edgesec/pull/541 which enabled these sanitizers for Linux for more information on why we want them.

Implementation details

Since on FreeBSD, ASLR (Address Space Layout Randomization) is enabled by default, (see the below error message), we need to use proccontrol to disable ASLR for the process.

This sanitizer is not compatible with enabled ASLR and binaries compiled with PIE

codecov[bot] commented 1 year ago

Codecov Report

Merging #550 (660f12e) into main (d8fc95b) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #550   +/-   ##
=======================================
  Coverage   54.15%   54.15%           
=======================================
  Files         146      146           
  Lines       20998    20998           
=======================================
  Hits        11371    11371           
  Misses       9627     9627           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.