shithub: orca

Download patch

ref: a6cd6ff2d98d907f109322126ebb711a4bcd5222
parent: 289ee12e4b84ec0e77bee45a341a25e17280a340
author: cancel <cancel@cancel.fm>
date: Tue Jan 21 15:02:52 EST 2020

Add some more sanitize options to build script

--- a/tool
+++ b/tool
@@ -265,7 +265,12 @@
       # cygwin gcc doesn't seem to have this stuff, just elide for now
       if [[ $os != cygwin ]]; then
         if cc_id_and_vers_gte gcc 6.0.0 || cc_id_and_vers_gte clang 3.9.0; then
-          add cc_flags -fsanitize=address -fsanitize=undefined
+          add cc_flags -fsanitize=address -fsanitize=undefined \
+            -fsanitize=float-divide-by-zero
+        fi
+        if cc_id_and_vers_gte clang 7.0.0; then
+          add cc_flags -fsanitize=implicit-conversion \
+            -fsanitize=unsigned-integer-overflow
         fi
       fi
       if [[ $os = mac ]]; then