From eed0dbfab4d0a3f6507e72a50775fa7faca5004f Mon Sep 17 00:00:00 2001 From: "satyajit.a" Date: Tue, 28 Jun 2016 12:08:20 +0900 Subject: [PATCH] [TCT][scripts/src/templates][NonACR][Fixed ASan Run-Time Execution Issues + Provided Support for execution over all profiles] Change-Id: Ie887a8a9d0c884dc3596bcdf80657fb18f997fee Signed-off-by: satyajit.a --- scripts/tcbuild.sh | 8 ++++---- scripts/tcbuildsdk.sh | 8 ++++---- src/common/tct_common.c | 9 --------- src/common/tct_common.h | 3 --- src/ctc/audio-io/CMakeLists.txt | 2 +- src/ctc/camera/CMakeLists.txt | 2 +- src/ctc/connection/CMakeLists.txt | 2 +- src/ctc/device/CMakeLists.txt | 2 +- src/ctc/filesystem-permission/CMakeLists.txt | 2 +- src/ctc/image-util/CMakeLists.txt | 2 +- src/ctc/libstorage/CMakeLists.txt | 2 +- src/ctc/location-manager/CMakeLists.txt | 2 +- src/ctc/mediacodec/CMakeLists.txt | 2 +- src/ctc/opengl/CMakeLists.txt | 2 +- src/ctc/platform-permission/CMakeLists.txt | 2 +- src/ctc/player/CMakeLists.txt | 2 +- src/ctc/runtime-info/CMakeLists.txt | 2 +- src/ctc/sensor/CMakeLists.txt | 2 +- src/ctc/sound-manager/CMakeLists.txt | 2 +- src/ctc/system-info/CMakeLists.txt | 2 +- src/ctc/telephony/CMakeLists.txt | 2 +- src/ctc/video-util/CMakeLists.txt | 2 +- src/ctc/wifi-direct/CMakeLists.txt | 2 +- src/itc/accounts-svc/CMakeLists.txt | 2 +- src/itc/app-manager/CMakeLists.txt | 2 +- src/itc/appcore-agent/CMakeLists.txt | 2 +- src/itc/appcore-watch/CMakeLists.txt | 2 +- src/itc/appcore-widget/CMakeLists.txt | 2 +- src/itc/application/CMakeLists.txt | 2 +- src/itc/audio-io/CMakeLists.txt | 2 +- src/itc/badge/CMakeLists.txt | 2 +- src/itc/base-utils/CMakeLists.txt | 2 +- src/itc/bluetooth/CMakeLists.txt | 2 +- src/itc/bundle/CMakeLists.txt | 2 +- src/itc/cairo/CMakeLists.txt | 2 +- src/itc/calendar-service2/CMakeLists.txt | 2 +- src/itc/camera/CMakeLists.txt | 2 +- src/itc/capi-maps-service/CMakeLists.txt | 2 +- src/itc/capi-media-streamer/CMakeLists.txt | 2 +- src/itc/capi-media-tool/CMakeLists.txt | 2 +- src/itc/capi-mediademuxer/CMakeLists.txt | 2 +- src/itc/capi-mediamuxer/CMakeLists.txt | 2 +- src/itc/capi-message-port/CMakeLists.txt | 2 +- src/itc/capi-ui-inputmethod-manager/CMakeLists.txt | 2 +- src/itc/connection/CMakeLists.txt | 2 +- src/itc/contacts-service2/CMakeLists.txt | 2 +- src/itc/context/CMakeLists.txt | 2 +- src/itc/dali-adaptor/CMakeLists.txt | 2 +- src/itc/dali-core/CMakeLists.txt | 2 +- src/itc/dali-toolkit/CMakeLists.txt | 2 +- src/itc/data-control/CMakeLists.txt | 2 +- src/itc/device/CMakeLists.txt | 2 +- src/itc/dlog/CMakeLists.txt | 2 +- src/itc/efl-ext/CMakeLists.txt | 2 +- src/itc/efl-util/CMakeLists.txt | 2 +- src/itc/email/CMakeLists.txt | 2 +- src/itc/eom/CMakeLists.txt | 2 +- src/itc/fido-client/CMakeLists.txt | 2 +- src/itc/geofence-manager/CMakeLists.txt | 2 +- src/itc/image-util/CMakeLists.txt | 2 +- src/itc/iotcon/CMakeLists.txt | 2 +- src/itc/key-manager/CMakeLists.txt | 2 +- src/itc/libfeedback/CMakeLists.txt | 2 +- src/itc/libstorage/CMakeLists.txt | 2 +- src/itc/location-manager/CMakeLists.txt | 2 +- src/itc/media-content/CMakeLists.txt | 2 +- src/itc/media-controller/CMakeLists.txt | 2 +- src/itc/media-key/CMakeLists.txt | 2 +- src/itc/media-vision/CMakeLists.txt | 2 +- src/itc/mediacodec/CMakeLists.txt | 2 +- src/itc/mediastreamrecorder/CMakeLists.txt | 2 +- src/itc/messages/CMakeLists.txt | 2 +- src/itc/metadata-editor/CMakeLists.txt | 2 +- src/itc/metadata-extractor/CMakeLists.txt | 2 +- src/itc/mime-type/CMakeLists.txt | 2 +- src/itc/minicontrol/CMakeLists.txt | 2 +- src/itc/motion/CMakeLists.txt | 2 +- src/itc/mtp/CMakeLists.txt | 2 +- src/itc/native-common/CMakeLists.txt | 2 +- src/itc/nfc/CMakeLists.txt | 2 +- src/itc/notification/CMakeLists.txt | 2 +- src/itc/nsd/CMakeLists.txt | 2 +- src/itc/oauth2/CMakeLists.txt | 2 +- src/itc/package-manager/CMakeLists.txt | 2 +- src/itc/phonenumber-utils/CMakeLists.txt | 2 +- src/itc/player/CMakeLists.txt | 2 +- src/itc/privilege-info/CMakeLists.txt | 2 +- src/itc/push/CMakeLists.txt | 2 +- src/itc/radio/CMakeLists.txt | 2 +- src/itc/recorder/CMakeLists.txt | 2 +- src/itc/runtime-info/CMakeLists.txt | 2 +- src/itc/screen-mirroring/CMakeLists.txt | 2 +- src/itc/sensor/CMakeLists.txt | 2 +- src/itc/service-adaptor/CMakeLists.txt | 2 +- src/itc/shortcut/CMakeLists.txt | 2 +- src/itc/smartcard/CMakeLists.txt | 2 +- src/itc/sound-manager/CMakeLists.txt | 2 +- src/itc/stt/CMakeLists.txt | 2 +- src/itc/sync-manager/CMakeLists.txt | 2 +- src/itc/system-info/CMakeLists.txt | 2 +- src/itc/system-settings/CMakeLists.txt | 2 +- src/itc/tbm/CMakeLists.txt | 2 +- src/itc/telephony/CMakeLists.txt | 2 +- src/itc/thumbnail-util/CMakeLists.txt | 2 +- src/itc/tone-player/CMakeLists.txt | 2 +- src/itc/ttrace/CMakeLists.txt | 2 +- src/itc/tts/CMakeLists.txt | 2 +- src/itc/url-download/CMakeLists.txt | 2 +- src/itc/video-util/CMakeLists.txt | 2 +- src/itc/voice-control-elm/CMakeLists.txt | 2 +- src/itc/voice-control/CMakeLists.txt | 2 +- src/itc/vpn-service/CMakeLists.txt | 2 +- src/itc/wav-player/CMakeLists.txt | 2 +- src/itc/webkit2/CMakeLists.txt | 2 +- src/itc/widget_service/CMakeLists.txt | 2 +- src/itc/widget_viewer_evas/CMakeLists.txt | 2 +- src/itc/wifi-direct/CMakeLists.txt | 2 +- src/itc/wifi/CMakeLists.txt | 2 +- src/utc/accounts-svc/CMakeLists.txt | 2 +- src/utc/app-manager/CMakeLists.txt | 2 +- src/utc/appcore-agent/CMakeLists.txt | 2 +- src/utc/appcore-watch/CMakeLists.txt | 2 +- src/utc/appcore-widget/CMakeLists.txt | 2 +- src/utc/application/CMakeLists.txt | 2 +- src/utc/attach-panel/CMakeLists.txt | 2 +- src/utc/audio-io/CMakeLists.txt | 2 +- src/utc/badge/CMakeLists.txt | 2 +- src/utc/base-utils/CMakeLists.txt | 2 +- src/utc/bluetooth/CMakeLists.txt | 2 +- src/utc/bundle/CMakeLists.txt | 2 +- src/utc/cairo/CMakeLists.txt | 2 +- src/utc/calendar-service2/CMakeLists.txt | 2 +- src/utc/camera/CMakeLists.txt | 2 +- src/utc/capi-maps-service/CMakeLists.txt | 2 +- src/utc/capi-media-streamer/CMakeLists.txt | 2 +- src/utc/capi-media-vision/CMakeLists.txt | 2 +- src/utc/capi-message-port/CMakeLists.txt | 2 +- src/utc/capi-ui-inputmethod-manager/CMakeLists.txt | 2 +- src/utc/capi-ui-inputmethod/CMakeLists.txt | 2 +- src/utc/connection/CMakeLists.txt | 2 +- src/utc/contacts-service2/CMakeLists.txt | 2 +- src/utc/context/CMakeLists.txt | 2 +- src/utc/d2d-conv-manager/CMakeLists.txt | 2 +- src/utc/dali-adaptor/CMakeLists.txt | 2 +- src/utc/dali-core/CMakeLists.txt | 2 +- src/utc/dali-toolkit/CMakeLists.txt | 2 +- src/utc/data-control/CMakeLists.txt | 2 +- src/utc/device/CMakeLists.txt | 2 +- src/utc/dlog/CMakeLists.txt | 2 +- src/utc/efl-ext/CMakeLists.txt | 2 +- src/utc/efl-util/CMakeLists.txt | 2 +- src/utc/email/CMakeLists.txt | 2 +- src/utc/eom/CMakeLists.txt | 2 +- src/utc/fido-client/CMakeLists.txt | 2 +- src/utc/geofence-manager/CMakeLists.txt | 2 +- src/utc/http/CMakeLists.txt | 2 +- src/utc/image-util/CMakeLists.txt | 2 +- src/utc/iotcon/CMakeLists.txt | 2 +- src/utc/key-manager/CMakeLists.txt | 2 +- src/utc/libfeedback/CMakeLists.txt | 2 +- src/utc/libstorage/CMakeLists.txt | 2 +- src/utc/libstorage64/CMakeLists.txt | 2 +- src/utc/location-manager/CMakeLists.txt | 2 +- src/utc/media-content/CMakeLists.txt | 2 +- src/utc/media-controller/CMakeLists.txt | 2 +- src/utc/media-key/CMakeLists.txt | 2 +- src/utc/mediacodec/CMakeLists.txt | 2 +- src/utc/mediademuxer/CMakeLists.txt | 2 +- src/utc/mediamuxer/CMakeLists.txt | 2 +- src/utc/mediatool/CMakeLists.txt | 2 +- src/utc/messages/CMakeLists.txt | 2 +- src/utc/metadata-editor/CMakeLists.txt | 2 +- src/utc/metadata-extractor/CMakeLists.txt | 2 +- src/utc/mime-type/CMakeLists.txt | 2 +- src/utc/minicontrol/CMakeLists.txt | 2 +- src/utc/motion/CMakeLists.txt | 2 +- src/utc/mtp/CMakeLists.txt | 2 +- src/utc/native-common/CMakeLists.txt | 2 +- src/utc/nfc/CMakeLists.txt | 2 +- src/utc/notification/CMakeLists.txt | 2 +- src/utc/nsd/CMakeLists.txt | 2 +- src/utc/oauth2/CMakeLists.txt | 2 +- src/utc/package-manager/CMakeLists.txt | 2 +- src/utc/phonenumber-utils/CMakeLists.txt | 2 +- src/utc/player/CMakeLists.txt | 2 +- src/utc/privilege-info/CMakeLists.txt | 2 +- src/utc/push/CMakeLists.txt | 2 +- src/utc/radio/CMakeLists.txt | 2 +- src/utc/recorder/CMakeLists.txt | 2 +- src/utc/runtime-info/CMakeLists.txt | 2 +- src/utc/screen-mirroring/CMakeLists.txt | 2 +- src/utc/sensor/CMakeLists.txt | 2 +- src/utc/service-adaptor/CMakeLists.txt | 2 +- src/utc/shortcut/CMakeLists.txt | 2 +- src/utc/smartcard/CMakeLists.txt | 2 +- src/utc/sound-manager/CMakeLists.txt | 2 +- src/utc/streamrecorder/CMakeLists.txt | 2 +- src/utc/stt/CMakeLists.txt | 2 +- src/utc/sync-manager/CMakeLists.txt | 2 +- src/utc/system-info/CMakeLists.txt | 2 +- src/utc/system-settings/CMakeLists.txt | 2 +- src/utc/tbm/CMakeLists.txt | 2 +- src/utc/telephony/CMakeLists.txt | 2 +- src/utc/thumbnail-util/CMakeLists.txt | 2 +- src/utc/tone-player/CMakeLists.txt | 2 +- src/utc/trace/CMakeLists.txt | 2 +- src/utc/tts/CMakeLists.txt | 2 +- src/utc/url-download/CMakeLists.txt | 2 +- src/utc/video-util/CMakeLists.txt | 2 +- src/utc/voice-control-elm/CMakeLists.txt | 2 +- src/utc/voice-control/CMakeLists.txt | 2 +- src/utc/vpn/CMakeLists.txt | 2 +- src/utc/wav-player/CMakeLists.txt | 2 +- src/utc/webkit2/CMakeLists.txt | 2 +- src/utc/widget_service/CMakeLists.txt | 2 +- src/utc/widget_viewer_evas/CMakeLists.txt | 2 +- src/utc/wifi-direct/CMakeLists.txt | 2 +- src/utc/wifi/CMakeLists.txt | 2 +- templates/external_wrapper_asan/external_wrapper.sh | 5 +++-- templates/tct-package-asan/inst.sh | 4 ++++ 220 files changed, 229 insertions(+), 236 deletions(-) diff --git a/scripts/tcbuild.sh b/scripts/tcbuild.sh index 2485e01..ee1b477 100755 --- a/scripts/tcbuild.sh +++ b/scripts/tcbuild.sh @@ -347,25 +347,25 @@ PREFIX="native" if [ $BUILD_DEVICE_TYPE == "mobile" ]; then echo "DEVICE BUILD TYPE = MOBILE" - gbs --conf $TCCONF build -A $ARCH --packaging-dir packaging/$1 --spec $PREFIX-$2-$TAG_SPEC.spec --repository --include-all --keep-packs --define "APP_PATH $APP_DIR" --define "INTERNAL_STORAGE_PATH $INTERNAL_STORAGE_DIR" --define "DEVICE_SUITE_TARGET_30 $DEVICE_SUITE_TARGET_30" --define "DEVICE_USER_30 $DEVICE_USER_30" --define "ASAN_BUILD $ASAN" --define "DEVICE_BUILD_TYPE_MOBILE $BUILD_DEVICE_TYPE" -P device | \ + gbs --conf $TCCONF build -A $ARCH --packaging-dir packaging/$1 --spec $PREFIX-$2-$TAG_SPEC.spec --include-all --clean --extra-packs libasan,asan-build-env --define "APP_PATH $APP_DIR" --define "INTERNAL_STORAGE_PATH $INTERNAL_STORAGE_DIR" --define "DEVICE_SUITE_TARGET_30 $DEVICE_SUITE_TARGET_30" --define "DEVICE_USER_30 $DEVICE_USER_30" --define "ASAN_BUILD $ASAN" --define "DEVICE_BUILD_TYPE_MOBILE $BUILD_DEVICE_TYPE" -P device | \ tee build.log | stdbuf -o0 sed -e 's/error:/\x1b[1;91m&\x1b[0m/' \ -e 's/warning:/\x1b[93m&\x1b[0m/' fi if [ $BUILD_DEVICE_TYPE == "wearable" ]; then echo "DEVICE BUILD TYPE = WEARABLE" - gbs --conf $TCCONF build -A $ARCH --packaging-dir packaging/$1 --spec $PREFIX-$2-$TAG_SPEC.spec --repository --include-all --keep-packs --define "APP_PATH $APP_DIR" --define "INTERNAL_STORAGE_PATH $INTERNAL_STORAGE_DIR" --define "DEVICE_SUITE_TARGET_30 $DEVICE_SUITE_TARGET_30" --define "DEVICE_USER_30 $DEVICE_USER_30" --define "ASAN_BUILD $ASAN" --define "DEVICE_BUILD_TYPE_WEARABLE $BUILD_DEVICE_TYPE" -P device | \ + gbs --conf $TCCONF build -A $ARCH --packaging-dir packaging/$1 --spec $PREFIX-$2-$TAG_SPEC.spec --include-all --clean --extra-packs libasan,asan-build-env --define "APP_PATH $APP_DIR" --define "INTERNAL_STORAGE_PATH $INTERNAL_STORAGE_DIR" --define "DEVICE_SUITE_TARGET_30 $DEVICE_SUITE_TARGET_30" --define "DEVICE_USER_30 $DEVICE_USER_30" --define "ASAN_BUILD $ASAN" --define "DEVICE_BUILD_TYPE_WEARABLE $BUILD_DEVICE_TYPE" -P device | \ tee build.log | stdbuf -o0 sed -e 's/error:/\x1b[1;91m&\x1b[0m/' \ -e 's/warning:/\x1b[93m&\x1b[0m/' fi if [ $BUILD_DEVICE_TYPE == "tv" ]; then echo "DEVICE BUILD TYPE = TV" - gbs --conf $TCCONF build -A $ARCH --packaging-dir packaging/$1 --spec $PREFIX-$2-$TAG_SPEC.spec --repository --include-all --keep-packs --define "APP_PATH $APP_DIR" --define "INTERNAL_STORAGE_PATH $INTERNAL_STORAGE_DIR" --define "DEVICE_SUITE_TARGET_30 $DEVICE_SUITE_TARGET_30" --define "DEVICE_USER_30 $DEVICE_USER_30" --define "ASAN_BUILD $ASAN" --define "DEVICE_BUILD_TYPE_TV $BUILD_DEVICE_TYPE" -P device | \ + gbs --conf $TCCONF build -A $ARCH --packaging-dir packaging/$1 --spec $PREFIX-$2-$TAG_SPEC.spec --include-all --clean --extra-packs libasan,asan-build-env --define "APP_PATH $APP_DIR" --define "INTERNAL_STORAGE_PATH $INTERNAL_STORAGE_DIR" --define "DEVICE_SUITE_TARGET_30 $DEVICE_SUITE_TARGET_30" --define "DEVICE_USER_30 $DEVICE_USER_30" --define "ASAN_BUILD $ASAN" --define "DEVICE_BUILD_TYPE_TV $BUILD_DEVICE_TYPE" -P device | \ tee build.log | stdbuf -o0 sed -e 's/error:/\x1b[1;91m&\x1b[0m/' \ -e 's/warning:/\x1b[93m&\x1b[0m/' fi if [ $BUILD_DEVICE_TYPE == "common_iot" ]; then echo "DEVICE BUILD TYPE = COMMON_IOT" - gbs --conf $TCCONF build -A $ARCH --packaging-dir packaging/$1 --spec $PREFIX-$2-$TAG_SPEC.spec --repository --include-all --keep-packs --define "APP_PATH $APP_DIR" --define "INTERNAL_STORAGE_PATH $INTERNAL_STORAGE_DIR" --define "DEVICE_SUITE_TARGET_30 $DEVICE_SUITE_TARGET_30" --define "DEVICE_USER_30 $DEVICE_USER_30" --define "ASAN_BUILD $ASAN" --define "DEVICE_BUILD_TYPE_COMMON_IOT $BUILD_DEVICE_TYPE" -P device | \ + gbs --conf $TCCONF build -A $ARCH --packaging-dir packaging/$1 --spec $PREFIX-$2-$TAG_SPEC.spec --include-all --clean --extra-packs libasan,asan-build-env --define "APP_PATH $APP_DIR" --define "INTERNAL_STORAGE_PATH $INTERNAL_STORAGE_DIR" --define "DEVICE_SUITE_TARGET_30 $DEVICE_SUITE_TARGET_30" --define "DEVICE_USER_30 $DEVICE_USER_30" --define "ASAN_BUILD $ASAN" --define "DEVICE_BUILD_TYPE_COMMON_IOT $BUILD_DEVICE_TYPE" -P device | \ tee build.log | stdbuf -o0 sed -e 's/error:/\x1b[1;91m&\x1b[0m/' \ -e 's/warning:/\x1b[93m&\x1b[0m/' fi diff --git a/scripts/tcbuildsdk.sh b/scripts/tcbuildsdk.sh index 021fdfe..8ac45ac 100755 --- a/scripts/tcbuildsdk.sh +++ b/scripts/tcbuildsdk.sh @@ -348,25 +348,25 @@ PREFIX="native" if [ $BUILD_DEVICE_TYPE == "mobile" ]; then echo "DEVICE BUILD TYPE = MOBILE" - gbs --conf $TCCONF build -A $ARCH --packaging-dir packaging/$1 --spec $PREFIX-$2-$TAG_SPEC.spec --repository --include-all --keep-packs --define "APP_PATH $APP_DIR" --define "INTERNAL_STORAGE_PATH $INTERNAL_STORAGE_DIR" --define "DEVICE_SUITE_TARGET_30 $DEVICE_SUITE_TARGET_30" --define "DEVICE_USER_30 $DEVICE_USER_30" --define "ASAN_BUILD $ASAN" --define "DEVICE_BUILD_TYPE_MOBILE $BUILD_DEVICE_TYPE" -P sdk | \ + gbs --conf $TCCONF build -A $ARCH --packaging-dir packaging/$1 --spec $PREFIX-$2-$TAG_SPEC.spec --include-all --clean --extra-packs libasan,asan-build-env --define "APP_PATH $APP_DIR" --define "INTERNAL_STORAGE_PATH $INTERNAL_STORAGE_DIR" --define "DEVICE_SUITE_TARGET_30 $DEVICE_SUITE_TARGET_30" --define "DEVICE_USER_30 $DEVICE_USER_30" --define "ASAN_BUILD $ASAN" --define "DEVICE_BUILD_TYPE_MOBILE $BUILD_DEVICE_TYPE" -P sdk | \ tee build.log | stdbuf -o0 sed -e 's/error:/\x1b[1;91m&\x1b[0m/' \ -e 's/warning:/\x1b[93m&\x1b[0m/' fi if [ $BUILD_DEVICE_TYPE == "wearable" ]; then echo "DEVICE BUILD TYPE = WEARABLE" - gbs --conf $TCCONF build -A $ARCH --packaging-dir packaging/$1 --spec $PREFIX-$2-$TAG_SPEC.spec --repository --include-all --keep-packs --define "APP_PATH $APP_DIR" --define "INTERNAL_STORAGE_PATH $INTERNAL_STORAGE_DIR" --define "DEVICE_SUITE_TARGET_30 $DEVICE_SUITE_TARGET_30" --define "DEVICE_USER_30 $DEVICE_USER_30" --define "ASAN_BUILD $ASAN" --define "DEVICE_BUILD_TYPE_WEARABLE $BUILD_DEVICE_TYPE" -P sdk | \ + gbs --conf $TCCONF build -A $ARCH --packaging-dir packaging/$1 --spec $PREFIX-$2-$TAG_SPEC.spec --include-all --clean --extra-packs libasan,asan-build-env --define "APP_PATH $APP_DIR" --define "INTERNAL_STORAGE_PATH $INTERNAL_STORAGE_DIR" --define "DEVICE_SUITE_TARGET_30 $DEVICE_SUITE_TARGET_30" --define "DEVICE_USER_30 $DEVICE_USER_30" --define "ASAN_BUILD $ASAN" --define "DEVICE_BUILD_TYPE_WEARABLE $BUILD_DEVICE_TYPE" -P sdk | \ tee build.log | stdbuf -o0 sed -e 's/error:/\x1b[1;91m&\x1b[0m/' \ -e 's/warning:/\x1b[93m&\x1b[0m/' fi if [ $BUILD_DEVICE_TYPE == "tv" ]; then echo "DEVICE BUILD TYPE = TV" - gbs --conf $TCCONF build -A $ARCH --packaging-dir packaging/$1 --spec $PREFIX-$2-$TAG_SPEC.spec --repository --include-all --keep-packs --define "APP_PATH $APP_DIR" --define "INTERNAL_STORAGE_PATH $INTERNAL_STORAGE_DIR" --define "DEVICE_SUITE_TARGET_30 $DEVICE_SUITE_TARGET_30" --define "DEVICE_USER_30 $DEVICE_USER_30" --define "ASAN_BUILD $ASAN" --define "DEVICE_BUILD_TYPE_TV $BUILD_DEVICE_TYPE" -P sdk | \ + gbs --conf $TCCONF build -A $ARCH --packaging-dir packaging/$1 --spec $PREFIX-$2-$TAG_SPEC.spec --include-all --clean --extra-packs libasan,asan-build-env --define "APP_PATH $APP_DIR" --define "INTERNAL_STORAGE_PATH $INTERNAL_STORAGE_DIR" --define "DEVICE_SUITE_TARGET_30 $DEVICE_SUITE_TARGET_30" --define "DEVICE_USER_30 $DEVICE_USER_30" --define "ASAN_BUILD $ASAN" --define "DEVICE_BUILD_TYPE_TV $BUILD_DEVICE_TYPE" -P sdk | \ tee build.log | stdbuf -o0 sed -e 's/error:/\x1b[1;91m&\x1b[0m/' \ -e 's/warning:/\x1b[93m&\x1b[0m/' fi if [ $BUILD_DEVICE_TYPE == "common_iot" ]; then echo "DEVICE BUILD TYPE = COMMON_IOT" - gbs --conf $TCCONF build -A $ARCH --packaging-dir packaging/$1 --spec $PREFIX-$2-$TAG_SPEC.spec --repository --include-all --keep-packs --define "APP_PATH $APP_DIR" --define "INTERNAL_STORAGE_PATH $INTERNAL_STORAGE_DIR" --define "DEVICE_SUITE_TARGET_30 $DEVICE_SUITE_TARGET_30" --define "DEVICE_USER_30 $DEVICE_USER_30" --define "ASAN_BUILD $ASAN" --define "DEVICE_BUILD_TYPE_COMMON_IOT $BUILD_DEVICE_TYPE" -P sdk | \ + gbs --conf $TCCONF build -A $ARCH --packaging-dir packaging/$1 --spec $PREFIX-$2-$TAG_SPEC.spec --include-all --clean --extra-packs libasan,asan-build-env --define "APP_PATH $APP_DIR" --define "INTERNAL_STORAGE_PATH $INTERNAL_STORAGE_DIR" --define "DEVICE_SUITE_TARGET_30 $DEVICE_SUITE_TARGET_30" --define "DEVICE_USER_30 $DEVICE_USER_30" --define "ASAN_BUILD $ASAN" --define "DEVICE_BUILD_TYPE_COMMON_IOT $BUILD_DEVICE_TYPE" -P sdk | \ tee build.log | stdbuf -o0 sed -e 's/error:/\x1b[1;91m&\x1b[0m/' \ -e 's/warning:/\x1b[93m&\x1b[0m/' fi diff --git a/src/common/tct_common.c b/src/common/tct_common.c index 529003b..3d3b8a0 100755 --- a/src/common/tct_common.c +++ b/src/common/tct_common.c @@ -16,15 +16,6 @@ #include "tct_common.h" -#ifdef ASAN //Starts ASAN -#ifdef __cplusplus -extern "C" -#endif -const char * -__asan_default_options () { - return "keep_going=1:malloc_context_size=2:fast_unwind_on_malloc=false:quarantine_size=32768:allow_reexec=false:start_deactivated=true:log_path=/tmp/asan_test/asan.log"; -} -#endif //End ASAN /** * @function TCTCheckSystemInfoFeatureSupported * @description Check the supported feature for the given key value diff --git a/src/common/tct_common.h b/src/common/tct_common.h index cff31f3..a5c5a05 100755 --- a/src/common/tct_common.h +++ b/src/common/tct_common.h @@ -175,9 +175,6 @@ else \ }\ } -#ifdef ASAN //Starts ASAN -const char *__asan_default_options(); -#endif //End ASAN bool TCTCheckSystemInfoFeatureSupported(char* pszKey, char* pszModuleName); char* TCTSystemInfoGetError(int nRet); bool GetValueFromConfigFile(char* pstrKeyString, char* pstrValue, char* pstrModule); diff --git a/src/ctc/audio-io/CMakeLists.txt b/src/ctc/audio-io/CMakeLists.txt index 573f799..52755cc 100755 --- a/src/ctc/audio-io/CMakeLists.txt +++ b/src/ctc/audio-io/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/ctc/camera/CMakeLists.txt b/src/ctc/camera/CMakeLists.txt index a75cffd..634c556 100755 --- a/src/ctc/camera/CMakeLists.txt +++ b/src/ctc/camera/CMakeLists.txt @@ -31,7 +31,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/ctc/connection/CMakeLists.txt b/src/ctc/connection/CMakeLists.txt index cdb56f5..29bb655 100755 --- a/src/ctc/connection/CMakeLists.txt +++ b/src/ctc/connection/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/ctc/device/CMakeLists.txt b/src/ctc/device/CMakeLists.txt index a55e144..bf83be7 100755 --- a/src/ctc/device/CMakeLists.txt +++ b/src/ctc/device/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/ctc/filesystem-permission/CMakeLists.txt b/src/ctc/filesystem-permission/CMakeLists.txt index 51e8f46..5284640 100755 --- a/src/ctc/filesystem-permission/CMakeLists.txt +++ b/src/ctc/filesystem-permission/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/ctc/image-util/CMakeLists.txt b/src/ctc/image-util/CMakeLists.txt index e1106c9..e504c82 100755 --- a/src/ctc/image-util/CMakeLists.txt +++ b/src/ctc/image-util/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/ctc/libstorage/CMakeLists.txt b/src/ctc/libstorage/CMakeLists.txt index d70c532..031162c 100755 --- a/src/ctc/libstorage/CMakeLists.txt +++ b/src/ctc/libstorage/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/ctc/location-manager/CMakeLists.txt b/src/ctc/location-manager/CMakeLists.txt index b8a2311..333969c 100755 --- a/src/ctc/location-manager/CMakeLists.txt +++ b/src/ctc/location-manager/CMakeLists.txt @@ -34,7 +34,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/ctc/mediacodec/CMakeLists.txt b/src/ctc/mediacodec/CMakeLists.txt index a9aeae3..7a9ce11 100755 --- a/src/ctc/mediacodec/CMakeLists.txt +++ b/src/ctc/mediacodec/CMakeLists.txt @@ -32,7 +32,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/ctc/opengl/CMakeLists.txt b/src/ctc/opengl/CMakeLists.txt index e2409f9..e312b92 100755 --- a/src/ctc/opengl/CMakeLists.txt +++ b/src/ctc/opengl/CMakeLists.txt @@ -42,7 +42,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/ctc/platform-permission/CMakeLists.txt b/src/ctc/platform-permission/CMakeLists.txt index c7ae928..de25701 100755 --- a/src/ctc/platform-permission/CMakeLists.txt +++ b/src/ctc/platform-permission/CMakeLists.txt @@ -274,7 +274,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/ctc/player/CMakeLists.txt b/src/ctc/player/CMakeLists.txt index 0295421..5803cdf 100755 --- a/src/ctc/player/CMakeLists.txt +++ b/src/ctc/player/CMakeLists.txt @@ -42,7 +42,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/ctc/runtime-info/CMakeLists.txt b/src/ctc/runtime-info/CMakeLists.txt index 0676cc3..5eecd19 100755 --- a/src/ctc/runtime-info/CMakeLists.txt +++ b/src/ctc/runtime-info/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/ctc/sensor/CMakeLists.txt b/src/ctc/sensor/CMakeLists.txt index 81fcbce..0255a29 100755 --- a/src/ctc/sensor/CMakeLists.txt +++ b/src/ctc/sensor/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/ctc/sound-manager/CMakeLists.txt b/src/ctc/sound-manager/CMakeLists.txt index c89df73..6529889 100755 --- a/src/ctc/sound-manager/CMakeLists.txt +++ b/src/ctc/sound-manager/CMakeLists.txt @@ -35,7 +35,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/ctc/system-info/CMakeLists.txt b/src/ctc/system-info/CMakeLists.txt index 52b3c7f..f1f740a 100755 --- a/src/ctc/system-info/CMakeLists.txt +++ b/src/ctc/system-info/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/ctc/telephony/CMakeLists.txt b/src/ctc/telephony/CMakeLists.txt index 63359e3..ef5ed41 100755 --- a/src/ctc/telephony/CMakeLists.txt +++ b/src/ctc/telephony/CMakeLists.txt @@ -34,7 +34,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/ctc/video-util/CMakeLists.txt b/src/ctc/video-util/CMakeLists.txt index 0c426c8..b91299c 100755 --- a/src/ctc/video-util/CMakeLists.txt +++ b/src/ctc/video-util/CMakeLists.txt @@ -35,7 +35,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/ctc/wifi-direct/CMakeLists.txt b/src/ctc/wifi-direct/CMakeLists.txt index 75dfbeb..374060f 100755 --- a/src/ctc/wifi-direct/CMakeLists.txt +++ b/src/ctc/wifi-direct/CMakeLists.txt @@ -34,7 +34,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/accounts-svc/CMakeLists.txt b/src/itc/accounts-svc/CMakeLists.txt index e2d51f2..9ff376f 100755 --- a/src/itc/accounts-svc/CMakeLists.txt +++ b/src/itc/accounts-svc/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/app-manager/CMakeLists.txt b/src/itc/app-manager/CMakeLists.txt index b7bc2d5..b45be7e 100755 --- a/src/itc/app-manager/CMakeLists.txt +++ b/src/itc/app-manager/CMakeLists.txt @@ -38,7 +38,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/appcore-agent/CMakeLists.txt b/src/itc/appcore-agent/CMakeLists.txt index d546397..00334f1 100755 --- a/src/itc/appcore-agent/CMakeLists.txt +++ b/src/itc/appcore-agent/CMakeLists.txt @@ -34,7 +34,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/appcore-watch/CMakeLists.txt b/src/itc/appcore-watch/CMakeLists.txt index 7213420..5463d8c 100755 --- a/src/itc/appcore-watch/CMakeLists.txt +++ b/src/itc/appcore-watch/CMakeLists.txt @@ -32,7 +32,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/appcore-widget/CMakeLists.txt b/src/itc/appcore-widget/CMakeLists.txt index 8ee6138..b14d8ed 100755 --- a/src/itc/appcore-widget/CMakeLists.txt +++ b/src/itc/appcore-widget/CMakeLists.txt @@ -32,7 +32,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/application/CMakeLists.txt b/src/itc/application/CMakeLists.txt index b71ae54..798d66c 100755 --- a/src/itc/application/CMakeLists.txt +++ b/src/itc/application/CMakeLists.txt @@ -43,7 +43,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/audio-io/CMakeLists.txt b/src/itc/audio-io/CMakeLists.txt index 9a08310..4c8b1ee 100755 --- a/src/itc/audio-io/CMakeLists.txt +++ b/src/itc/audio-io/CMakeLists.txt @@ -38,7 +38,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/badge/CMakeLists.txt b/src/itc/badge/CMakeLists.txt index 3f0fc50..0c4af4f 100755 --- a/src/itc/badge/CMakeLists.txt +++ b/src/itc/badge/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/base-utils/CMakeLists.txt b/src/itc/base-utils/CMakeLists.txt index c74dc64..1a903b7 100755 --- a/src/itc/base-utils/CMakeLists.txt +++ b/src/itc/base-utils/CMakeLists.txt @@ -46,7 +46,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/bluetooth/CMakeLists.txt b/src/itc/bluetooth/CMakeLists.txt index 9ce3423..c2f9167 100755 --- a/src/itc/bluetooth/CMakeLists.txt +++ b/src/itc/bluetooth/CMakeLists.txt @@ -75,7 +75,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/bundle/CMakeLists.txt b/src/itc/bundle/CMakeLists.txt index f4a7de5..c819dc9 100755 --- a/src/itc/bundle/CMakeLists.txt +++ b/src/itc/bundle/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/cairo/CMakeLists.txt b/src/itc/cairo/CMakeLists.txt index 3f52dd9..655cb54 100755 --- a/src/itc/cairo/CMakeLists.txt +++ b/src/itc/cairo/CMakeLists.txt @@ -39,7 +39,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/calendar-service2/CMakeLists.txt b/src/itc/calendar-service2/CMakeLists.txt index 3974ce5..89cb620 100755 --- a/src/itc/calendar-service2/CMakeLists.txt +++ b/src/itc/calendar-service2/CMakeLists.txt @@ -40,7 +40,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/camera/CMakeLists.txt b/src/itc/camera/CMakeLists.txt index a931999..e1eb877 100755 --- a/src/itc/camera/CMakeLists.txt +++ b/src/itc/camera/CMakeLists.txt @@ -36,7 +36,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/capi-maps-service/CMakeLists.txt b/src/itc/capi-maps-service/CMakeLists.txt index 9d8bd51..46708c4 100755 --- a/src/itc/capi-maps-service/CMakeLists.txt +++ b/src/itc/capi-maps-service/CMakeLists.txt @@ -41,7 +41,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/capi-media-streamer/CMakeLists.txt b/src/itc/capi-media-streamer/CMakeLists.txt index 6da1fce..6256b1d 100755 --- a/src/itc/capi-media-streamer/CMakeLists.txt +++ b/src/itc/capi-media-streamer/CMakeLists.txt @@ -40,7 +40,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/capi-media-tool/CMakeLists.txt b/src/itc/capi-media-tool/CMakeLists.txt index a449ae6..77d86ad 100755 --- a/src/itc/capi-media-tool/CMakeLists.txt +++ b/src/itc/capi-media-tool/CMakeLists.txt @@ -38,7 +38,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/capi-mediademuxer/CMakeLists.txt b/src/itc/capi-mediademuxer/CMakeLists.txt index 8299e9e..2ffddda 100755 --- a/src/itc/capi-mediademuxer/CMakeLists.txt +++ b/src/itc/capi-mediademuxer/CMakeLists.txt @@ -34,7 +34,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/capi-mediamuxer/CMakeLists.txt b/src/itc/capi-mediamuxer/CMakeLists.txt index 69c64a6..c5b59d3 100755 --- a/src/itc/capi-mediamuxer/CMakeLists.txt +++ b/src/itc/capi-mediamuxer/CMakeLists.txt @@ -34,7 +34,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/capi-message-port/CMakeLists.txt b/src/itc/capi-message-port/CMakeLists.txt index 655928d..13aa523 100755 --- a/src/itc/capi-message-port/CMakeLists.txt +++ b/src/itc/capi-message-port/CMakeLists.txt @@ -36,7 +36,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/capi-ui-inputmethod-manager/CMakeLists.txt b/src/itc/capi-ui-inputmethod-manager/CMakeLists.txt index 1b0658f..afea97e 100755 --- a/src/itc/capi-ui-inputmethod-manager/CMakeLists.txt +++ b/src/itc/capi-ui-inputmethod-manager/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/connection/CMakeLists.txt b/src/itc/connection/CMakeLists.txt index d57595e..f9c3cb5 100755 --- a/src/itc/connection/CMakeLists.txt +++ b/src/itc/connection/CMakeLists.txt @@ -40,7 +40,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/contacts-service2/CMakeLists.txt b/src/itc/contacts-service2/CMakeLists.txt index 30167f8..e8dd7f1 100755 --- a/src/itc/contacts-service2/CMakeLists.txt +++ b/src/itc/contacts-service2/CMakeLists.txt @@ -47,7 +47,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/context/CMakeLists.txt b/src/itc/context/CMakeLists.txt index 09c9ce8..fa39939 100755 --- a/src/itc/context/CMakeLists.txt +++ b/src/itc/context/CMakeLists.txt @@ -34,7 +34,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/dali-adaptor/CMakeLists.txt b/src/itc/dali-adaptor/CMakeLists.txt index 065292e..38afbd8 100755 --- a/src/itc/dali-adaptor/CMakeLists.txt +++ b/src/itc/dali-adaptor/CMakeLists.txt @@ -47,7 +47,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} IF( DEFINED ASAN ) -SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/dali-core/CMakeLists.txt b/src/itc/dali-core/CMakeLists.txt index cd496ca..9b5287a 100755 --- a/src/itc/dali-core/CMakeLists.txt +++ b/src/itc/dali-core/CMakeLists.txt @@ -196,7 +196,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/dali-toolkit/CMakeLists.txt b/src/itc/dali-toolkit/CMakeLists.txt index f3d469e..831239b 100755 --- a/src/itc/dali-toolkit/CMakeLists.txt +++ b/src/itc/dali-toolkit/CMakeLists.txt @@ -93,7 +93,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/data-control/CMakeLists.txt b/src/itc/data-control/CMakeLists.txt index 6e5e2f3..0b4a637 100755 --- a/src/itc/data-control/CMakeLists.txt +++ b/src/itc/data-control/CMakeLists.txt @@ -39,7 +39,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/device/CMakeLists.txt b/src/itc/device/CMakeLists.txt index 0e90549..ab969ec 100755 --- a/src/itc/device/CMakeLists.txt +++ b/src/itc/device/CMakeLists.txt @@ -76,7 +76,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/dlog/CMakeLists.txt b/src/itc/dlog/CMakeLists.txt index 683d00d..3dafb43 100755 --- a/src/itc/dlog/CMakeLists.txt +++ b/src/itc/dlog/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/efl-ext/CMakeLists.txt b/src/itc/efl-ext/CMakeLists.txt index 09b480b..5b0bb43 100755 --- a/src/itc/efl-ext/CMakeLists.txt +++ b/src/itc/efl-ext/CMakeLists.txt @@ -78,7 +78,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/efl-util/CMakeLists.txt b/src/itc/efl-util/CMakeLists.txt index ec3fdd4..9e63ec0 100755 --- a/src/itc/efl-util/CMakeLists.txt +++ b/src/itc/efl-util/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/email/CMakeLists.txt b/src/itc/email/CMakeLists.txt index 4e66b87..1a97846 100755 --- a/src/itc/email/CMakeLists.txt +++ b/src/itc/email/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/eom/CMakeLists.txt b/src/itc/eom/CMakeLists.txt index cd14a03..8e60e58 100755 --- a/src/itc/eom/CMakeLists.txt +++ b/src/itc/eom/CMakeLists.txt @@ -36,7 +36,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/fido-client/CMakeLists.txt b/src/itc/fido-client/CMakeLists.txt index ec6753b..e54c54e 100755 --- a/src/itc/fido-client/CMakeLists.txt +++ b/src/itc/fido-client/CMakeLists.txt @@ -34,7 +34,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/geofence-manager/CMakeLists.txt b/src/itc/geofence-manager/CMakeLists.txt index 9fdad63..c2e6646 100755 --- a/src/itc/geofence-manager/CMakeLists.txt +++ b/src/itc/geofence-manager/CMakeLists.txt @@ -36,7 +36,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/image-util/CMakeLists.txt b/src/itc/image-util/CMakeLists.txt index 707c7d0..8b2adcc 100755 --- a/src/itc/image-util/CMakeLists.txt +++ b/src/itc/image-util/CMakeLists.txt @@ -34,7 +34,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/iotcon/CMakeLists.txt b/src/itc/iotcon/CMakeLists.txt index 5aac333..eb75e10 100755 --- a/src/itc/iotcon/CMakeLists.txt +++ b/src/itc/iotcon/CMakeLists.txt @@ -50,7 +50,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/key-manager/CMakeLists.txt b/src/itc/key-manager/CMakeLists.txt index 827b8e6..b077bd7 100755 --- a/src/itc/key-manager/CMakeLists.txt +++ b/src/itc/key-manager/CMakeLists.txt @@ -35,7 +35,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} INSTALL(FILES dfb08fe4.0 DESTINATION /etc/ssl/certs/) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/libfeedback/CMakeLists.txt b/src/itc/libfeedback/CMakeLists.txt index 0a6adfd..d4bf980 100755 --- a/src/itc/libfeedback/CMakeLists.txt +++ b/src/itc/libfeedback/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/libstorage/CMakeLists.txt b/src/itc/libstorage/CMakeLists.txt index 63f314f..0aaafc3 100755 --- a/src/itc/libstorage/CMakeLists.txt +++ b/src/itc/libstorage/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/location-manager/CMakeLists.txt b/src/itc/location-manager/CMakeLists.txt index 6f696d8..0858c99 100755 --- a/src/itc/location-manager/CMakeLists.txt +++ b/src/itc/location-manager/CMakeLists.txt @@ -38,7 +38,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/media-content/CMakeLists.txt b/src/itc/media-content/CMakeLists.txt index 7cdefea..a6900b4 100755 --- a/src/itc/media-content/CMakeLists.txt +++ b/src/itc/media-content/CMakeLists.txt @@ -118,7 +118,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/media-controller/CMakeLists.txt b/src/itc/media-controller/CMakeLists.txt index a179b36..a8e6ee8 100755 --- a/src/itc/media-controller/CMakeLists.txt +++ b/src/itc/media-controller/CMakeLists.txt @@ -40,7 +40,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/media-key/CMakeLists.txt b/src/itc/media-key/CMakeLists.txt index cfa15ab..ca818d2 100755 --- a/src/itc/media-key/CMakeLists.txt +++ b/src/itc/media-key/CMakeLists.txt @@ -37,7 +37,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/media-vision/CMakeLists.txt b/src/itc/media-vision/CMakeLists.txt index d0f8da2..9841a46 100755 --- a/src/itc/media-vision/CMakeLists.txt +++ b/src/itc/media-vision/CMakeLists.txt @@ -43,7 +43,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/mediacodec/CMakeLists.txt b/src/itc/mediacodec/CMakeLists.txt index 94cda23..382dd9f 100755 --- a/src/itc/mediacodec/CMakeLists.txt +++ b/src/itc/mediacodec/CMakeLists.txt @@ -34,7 +34,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/mediastreamrecorder/CMakeLists.txt b/src/itc/mediastreamrecorder/CMakeLists.txt index 76d6f8b..099eb18 100755 --- a/src/itc/mediastreamrecorder/CMakeLists.txt +++ b/src/itc/mediastreamrecorder/CMakeLists.txt @@ -39,7 +39,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/messages/CMakeLists.txt b/src/itc/messages/CMakeLists.txt index 06f0121..6a744e9 100755 --- a/src/itc/messages/CMakeLists.txt +++ b/src/itc/messages/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/metadata-editor/CMakeLists.txt b/src/itc/metadata-editor/CMakeLists.txt index 8ef5c05..8901754 100755 --- a/src/itc/metadata-editor/CMakeLists.txt +++ b/src/itc/metadata-editor/CMakeLists.txt @@ -35,7 +35,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/metadata-extractor/CMakeLists.txt b/src/itc/metadata-extractor/CMakeLists.txt index 8183d35..f51370f 100755 --- a/src/itc/metadata-extractor/CMakeLists.txt +++ b/src/itc/metadata-extractor/CMakeLists.txt @@ -32,7 +32,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/mime-type/CMakeLists.txt b/src/itc/mime-type/CMakeLists.txt index 78e7270..7511095 100755 --- a/src/itc/mime-type/CMakeLists.txt +++ b/src/itc/mime-type/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/minicontrol/CMakeLists.txt b/src/itc/minicontrol/CMakeLists.txt index 3d5da27..a4fda0f 100755 --- a/src/itc/minicontrol/CMakeLists.txt +++ b/src/itc/minicontrol/CMakeLists.txt @@ -39,7 +39,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/motion/CMakeLists.txt b/src/itc/motion/CMakeLists.txt index d187026..41b0ded 100755 --- a/src/itc/motion/CMakeLists.txt +++ b/src/itc/motion/CMakeLists.txt @@ -39,7 +39,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/mtp/CMakeLists.txt b/src/itc/mtp/CMakeLists.txt index 6918a21..16f3c23 100755 --- a/src/itc/mtp/CMakeLists.txt +++ b/src/itc/mtp/CMakeLists.txt @@ -34,7 +34,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/native-common/CMakeLists.txt b/src/itc/native-common/CMakeLists.txt index d8b38f2..799bee9 100755 --- a/src/itc/native-common/CMakeLists.txt +++ b/src/itc/native-common/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/nfc/CMakeLists.txt b/src/itc/nfc/CMakeLists.txt index 0be4934..33613ec 100755 --- a/src/itc/nfc/CMakeLists.txt +++ b/src/itc/nfc/CMakeLists.txt @@ -37,7 +37,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/notification/CMakeLists.txt b/src/itc/notification/CMakeLists.txt index fa7ed6c..833c520 100755 --- a/src/itc/notification/CMakeLists.txt +++ b/src/itc/notification/CMakeLists.txt @@ -36,7 +36,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/nsd/CMakeLists.txt b/src/itc/nsd/CMakeLists.txt index 5eb4e04..55f6741 100755 --- a/src/itc/nsd/CMakeLists.txt +++ b/src/itc/nsd/CMakeLists.txt @@ -35,7 +35,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/oauth2/CMakeLists.txt b/src/itc/oauth2/CMakeLists.txt index 3237076..0f1d05a 100755 --- a/src/itc/oauth2/CMakeLists.txt +++ b/src/itc/oauth2/CMakeLists.txt @@ -36,7 +36,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/package-manager/CMakeLists.txt b/src/itc/package-manager/CMakeLists.txt index 228cd5d..9760249 100755 --- a/src/itc/package-manager/CMakeLists.txt +++ b/src/itc/package-manager/CMakeLists.txt @@ -34,7 +34,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/phonenumber-utils/CMakeLists.txt b/src/itc/phonenumber-utils/CMakeLists.txt index 192f381..2bc15a0 100755 --- a/src/itc/phonenumber-utils/CMakeLists.txt +++ b/src/itc/phonenumber-utils/CMakeLists.txt @@ -34,7 +34,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/player/CMakeLists.txt b/src/itc/player/CMakeLists.txt index ead04e2..db3a868 100755 --- a/src/itc/player/CMakeLists.txt +++ b/src/itc/player/CMakeLists.txt @@ -41,7 +41,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/privilege-info/CMakeLists.txt b/src/itc/privilege-info/CMakeLists.txt index 1ea51db..e08eafd 100755 --- a/src/itc/privilege-info/CMakeLists.txt +++ b/src/itc/privilege-info/CMakeLists.txt @@ -36,7 +36,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/push/CMakeLists.txt b/src/itc/push/CMakeLists.txt index f791daa..9e3d784 100755 --- a/src/itc/push/CMakeLists.txt +++ b/src/itc/push/CMakeLists.txt @@ -39,7 +39,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/radio/CMakeLists.txt b/src/itc/radio/CMakeLists.txt index db42459..150fa61 100755 --- a/src/itc/radio/CMakeLists.txt +++ b/src/itc/radio/CMakeLists.txt @@ -34,7 +34,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/recorder/CMakeLists.txt b/src/itc/recorder/CMakeLists.txt index 920ea47..cf200ad 100755 --- a/src/itc/recorder/CMakeLists.txt +++ b/src/itc/recorder/CMakeLists.txt @@ -36,7 +36,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/runtime-info/CMakeLists.txt b/src/itc/runtime-info/CMakeLists.txt index c81456d..00ed2da 100755 --- a/src/itc/runtime-info/CMakeLists.txt +++ b/src/itc/runtime-info/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/screen-mirroring/CMakeLists.txt b/src/itc/screen-mirroring/CMakeLists.txt index f024bc7..780e96e 100755 --- a/src/itc/screen-mirroring/CMakeLists.txt +++ b/src/itc/screen-mirroring/CMakeLists.txt @@ -32,7 +32,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/sensor/CMakeLists.txt b/src/itc/sensor/CMakeLists.txt index 113b1ae..dfacfbc 100755 --- a/src/itc/sensor/CMakeLists.txt +++ b/src/itc/sensor/CMakeLists.txt @@ -34,7 +34,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/service-adaptor/CMakeLists.txt b/src/itc/service-adaptor/CMakeLists.txt index 90fd42f..5d5d5a5 100755 --- a/src/itc/service-adaptor/CMakeLists.txt +++ b/src/itc/service-adaptor/CMakeLists.txt @@ -34,7 +34,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/shortcut/CMakeLists.txt b/src/itc/shortcut/CMakeLists.txt index c4dd24a..f636445 100755 --- a/src/itc/shortcut/CMakeLists.txt +++ b/src/itc/shortcut/CMakeLists.txt @@ -42,7 +42,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/smartcard/CMakeLists.txt b/src/itc/smartcard/CMakeLists.txt index d4e7e43..0c61c2e 100755 --- a/src/itc/smartcard/CMakeLists.txt +++ b/src/itc/smartcard/CMakeLists.txt @@ -36,7 +36,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/sound-manager/CMakeLists.txt b/src/itc/sound-manager/CMakeLists.txt index 3467878..60d226e 100755 --- a/src/itc/sound-manager/CMakeLists.txt +++ b/src/itc/sound-manager/CMakeLists.txt @@ -38,7 +38,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/stt/CMakeLists.txt b/src/itc/stt/CMakeLists.txt index e27374d..0d782ba 100755 --- a/src/itc/stt/CMakeLists.txt +++ b/src/itc/stt/CMakeLists.txt @@ -35,7 +35,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/sync-manager/CMakeLists.txt b/src/itc/sync-manager/CMakeLists.txt index 972a25b..4cf9346 100755 --- a/src/itc/sync-manager/CMakeLists.txt +++ b/src/itc/sync-manager/CMakeLists.txt @@ -116,7 +116,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/system-info/CMakeLists.txt b/src/itc/system-info/CMakeLists.txt index d4fdd71..b0fda16 100755 --- a/src/itc/system-info/CMakeLists.txt +++ b/src/itc/system-info/CMakeLists.txt @@ -32,7 +32,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/system-settings/CMakeLists.txt b/src/itc/system-settings/CMakeLists.txt index 651034e..35a35ab 100755 --- a/src/itc/system-settings/CMakeLists.txt +++ b/src/itc/system-settings/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/tbm/CMakeLists.txt b/src/itc/tbm/CMakeLists.txt index 38b85d3..6e43f52 100755 --- a/src/itc/tbm/CMakeLists.txt +++ b/src/itc/tbm/CMakeLists.txt @@ -35,7 +35,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/telephony/CMakeLists.txt b/src/itc/telephony/CMakeLists.txt index f561680..081945a 100755 --- a/src/itc/telephony/CMakeLists.txt +++ b/src/itc/telephony/CMakeLists.txt @@ -37,7 +37,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/thumbnail-util/CMakeLists.txt b/src/itc/thumbnail-util/CMakeLists.txt index e407d26..f037e50 100755 --- a/src/itc/thumbnail-util/CMakeLists.txt +++ b/src/itc/thumbnail-util/CMakeLists.txt @@ -32,7 +32,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/tone-player/CMakeLists.txt b/src/itc/tone-player/CMakeLists.txt index 6232a14..b244330 100755 --- a/src/itc/tone-player/CMakeLists.txt +++ b/src/itc/tone-player/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/ttrace/CMakeLists.txt b/src/itc/ttrace/CMakeLists.txt index 03651ee..01f6915 100755 --- a/src/itc/ttrace/CMakeLists.txt +++ b/src/itc/ttrace/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/tts/CMakeLists.txt b/src/itc/tts/CMakeLists.txt index 5a1d5e3..6acbcda 100755 --- a/src/itc/tts/CMakeLists.txt +++ b/src/itc/tts/CMakeLists.txt @@ -35,7 +35,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/url-download/CMakeLists.txt b/src/itc/url-download/CMakeLists.txt index ea0cbe6..464fe29 100755 --- a/src/itc/url-download/CMakeLists.txt +++ b/src/itc/url-download/CMakeLists.txt @@ -36,7 +36,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/video-util/CMakeLists.txt b/src/itc/video-util/CMakeLists.txt index 11750fb..58caa76 100755 --- a/src/itc/video-util/CMakeLists.txt +++ b/src/itc/video-util/CMakeLists.txt @@ -35,7 +35,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/voice-control-elm/CMakeLists.txt b/src/itc/voice-control-elm/CMakeLists.txt index 8c4b9ec..5465eb5 100755 --- a/src/itc/voice-control-elm/CMakeLists.txt +++ b/src/itc/voice-control-elm/CMakeLists.txt @@ -54,7 +54,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/voice-control/CMakeLists.txt b/src/itc/voice-control/CMakeLists.txt index a0c07ad..b29ea39 100755 --- a/src/itc/voice-control/CMakeLists.txt +++ b/src/itc/voice-control/CMakeLists.txt @@ -53,7 +53,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/vpn-service/CMakeLists.txt b/src/itc/vpn-service/CMakeLists.txt index 9dcd236..4114fd7 100755 --- a/src/itc/vpn-service/CMakeLists.txt +++ b/src/itc/vpn-service/CMakeLists.txt @@ -34,7 +34,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/wav-player/CMakeLists.txt b/src/itc/wav-player/CMakeLists.txt index 23c604a..f0f3033 100755 --- a/src/itc/wav-player/CMakeLists.txt +++ b/src/itc/wav-player/CMakeLists.txt @@ -34,7 +34,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/webkit2/CMakeLists.txt b/src/itc/webkit2/CMakeLists.txt index 2ad1bb0..5a1f1e7 100755 --- a/src/itc/webkit2/CMakeLists.txt +++ b/src/itc/webkit2/CMakeLists.txt @@ -94,7 +94,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/widget_service/CMakeLists.txt b/src/itc/widget_service/CMakeLists.txt index c7150fe..80cfeba 100755 --- a/src/itc/widget_service/CMakeLists.txt +++ b/src/itc/widget_service/CMakeLists.txt @@ -36,7 +36,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/widget_viewer_evas/CMakeLists.txt b/src/itc/widget_viewer_evas/CMakeLists.txt index 1a8f41d..edc1eb2 100755 --- a/src/itc/widget_viewer_evas/CMakeLists.txt +++ b/src/itc/widget_viewer_evas/CMakeLists.txt @@ -40,7 +40,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/wifi-direct/CMakeLists.txt b/src/itc/wifi-direct/CMakeLists.txt index 3ad8f36..2ad52a2 100755 --- a/src/itc/wifi-direct/CMakeLists.txt +++ b/src/itc/wifi-direct/CMakeLists.txt @@ -34,7 +34,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/itc/wifi/CMakeLists.txt b/src/itc/wifi/CMakeLists.txt index 9c5e8dc..ade1a5d 100755 --- a/src/itc/wifi/CMakeLists.txt +++ b/src/itc/wifi/CMakeLists.txt @@ -82,7 +82,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/accounts-svc/CMakeLists.txt b/src/utc/accounts-svc/CMakeLists.txt index 30d6de1..2cfb863 100755 --- a/src/utc/accounts-svc/CMakeLists.txt +++ b/src/utc/accounts-svc/CMakeLists.txt @@ -30,7 +30,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/app-manager/CMakeLists.txt b/src/utc/app-manager/CMakeLists.txt index 226e071..df92944 100755 --- a/src/utc/app-manager/CMakeLists.txt +++ b/src/utc/app-manager/CMakeLists.txt @@ -30,7 +30,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/appcore-agent/CMakeLists.txt b/src/utc/appcore-agent/CMakeLists.txt index fdf0167..373ec10 100755 --- a/src/utc/appcore-agent/CMakeLists.txt +++ b/src/utc/appcore-agent/CMakeLists.txt @@ -28,7 +28,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/appcore-watch/CMakeLists.txt b/src/utc/appcore-watch/CMakeLists.txt index 9cbe3ce..92f6a62 100755 --- a/src/utc/appcore-watch/CMakeLists.txt +++ b/src/utc/appcore-watch/CMakeLists.txt @@ -29,7 +29,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/appcore-widget/CMakeLists.txt b/src/utc/appcore-widget/CMakeLists.txt index d04f813..9e8a6cd 100755 --- a/src/utc/appcore-widget/CMakeLists.txt +++ b/src/utc/appcore-widget/CMakeLists.txt @@ -29,7 +29,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/application/CMakeLists.txt b/src/utc/application/CMakeLists.txt index c8bdce4..98db3db 100755 --- a/src/utc/application/CMakeLists.txt +++ b/src/utc/application/CMakeLists.txt @@ -43,7 +43,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/attach-panel/CMakeLists.txt b/src/utc/attach-panel/CMakeLists.txt index 41fb21f..53445d9 100755 --- a/src/utc/attach-panel/CMakeLists.txt +++ b/src/utc/attach-panel/CMakeLists.txt @@ -34,7 +34,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/audio-io/CMakeLists.txt b/src/utc/audio-io/CMakeLists.txt index ee95810..b53531f 100755 --- a/src/utc/audio-io/CMakeLists.txt +++ b/src/utc/audio-io/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/badge/CMakeLists.txt b/src/utc/badge/CMakeLists.txt index 5c5941c..a72adf7 100755 --- a/src/utc/badge/CMakeLists.txt +++ b/src/utc/badge/CMakeLists.txt @@ -31,7 +31,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/base-utils/CMakeLists.txt b/src/utc/base-utils/CMakeLists.txt index fdad946..90ff803 100755 --- a/src/utc/base-utils/CMakeLists.txt +++ b/src/utc/base-utils/CMakeLists.txt @@ -47,7 +47,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/bluetooth/CMakeLists.txt b/src/utc/bluetooth/CMakeLists.txt index bef6957..c4c3a77 100644 --- a/src/utc/bluetooth/CMakeLists.txt +++ b/src/utc/bluetooth/CMakeLists.txt @@ -123,7 +123,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/bundle/CMakeLists.txt b/src/utc/bundle/CMakeLists.txt index af9951d..ab685e0 100755 --- a/src/utc/bundle/CMakeLists.txt +++ b/src/utc/bundle/CMakeLists.txt @@ -48,7 +48,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/cairo/CMakeLists.txt b/src/utc/cairo/CMakeLists.txt index c64d958..8b7f080 100755 --- a/src/utc/cairo/CMakeLists.txt +++ b/src/utc/cairo/CMakeLists.txt @@ -35,7 +35,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/calendar-service2/CMakeLists.txt b/src/utc/calendar-service2/CMakeLists.txt index 76b5df3..39277c7 100755 --- a/src/utc/calendar-service2/CMakeLists.txt +++ b/src/utc/calendar-service2/CMakeLists.txt @@ -36,7 +36,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/camera/CMakeLists.txt b/src/utc/camera/CMakeLists.txt index 5a3bd2d..950d2b3 100755 --- a/src/utc/camera/CMakeLists.txt +++ b/src/utc/camera/CMakeLists.txt @@ -34,7 +34,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/capi-maps-service/CMakeLists.txt b/src/utc/capi-maps-service/CMakeLists.txt index 097dc10..0601b49 100755 --- a/src/utc/capi-maps-service/CMakeLists.txt +++ b/src/utc/capi-maps-service/CMakeLists.txt @@ -57,7 +57,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/capi-media-streamer/CMakeLists.txt b/src/utc/capi-media-streamer/CMakeLists.txt index 6e91d3b..35f1ee6 100755 --- a/src/utc/capi-media-streamer/CMakeLists.txt +++ b/src/utc/capi-media-streamer/CMakeLists.txt @@ -40,7 +40,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/capi-media-vision/CMakeLists.txt b/src/utc/capi-media-vision/CMakeLists.txt index c6edf72..aa4995e 100755 --- a/src/utc/capi-media-vision/CMakeLists.txt +++ b/src/utc/capi-media-vision/CMakeLists.txt @@ -44,7 +44,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/capi-message-port/CMakeLists.txt b/src/utc/capi-message-port/CMakeLists.txt index d9ec041..9176c9a 100755 --- a/src/utc/capi-message-port/CMakeLists.txt +++ b/src/utc/capi-message-port/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/capi-ui-inputmethod-manager/CMakeLists.txt b/src/utc/capi-ui-inputmethod-manager/CMakeLists.txt index 5965c23..2f54339 100755 --- a/src/utc/capi-ui-inputmethod-manager/CMakeLists.txt +++ b/src/utc/capi-ui-inputmethod-manager/CMakeLists.txt @@ -32,7 +32,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/capi-ui-inputmethod/CMakeLists.txt b/src/utc/capi-ui-inputmethod/CMakeLists.txt index 180c40e..a9def2b 100755 --- a/src/utc/capi-ui-inputmethod/CMakeLists.txt +++ b/src/utc/capi-ui-inputmethod/CMakeLists.txt @@ -32,7 +32,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/connection/CMakeLists.txt b/src/utc/connection/CMakeLists.txt index f59cdb9..91a8158 100755 --- a/src/utc/connection/CMakeLists.txt +++ b/src/utc/connection/CMakeLists.txt @@ -32,7 +32,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/contacts-service2/CMakeLists.txt b/src/utc/contacts-service2/CMakeLists.txt index 6d936da..4d33bfc 100755 --- a/src/utc/contacts-service2/CMakeLists.txt +++ b/src/utc/contacts-service2/CMakeLists.txt @@ -116,7 +116,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/context/CMakeLists.txt b/src/utc/context/CMakeLists.txt index 3307c27..20c2fe9 100755 --- a/src/utc/context/CMakeLists.txt +++ b/src/utc/context/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/d2d-conv-manager/CMakeLists.txt b/src/utc/d2d-conv-manager/CMakeLists.txt index cdebc44..35e506f 100755 --- a/src/utc/d2d-conv-manager/CMakeLists.txt +++ b/src/utc/d2d-conv-manager/CMakeLists.txt @@ -37,7 +37,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/dali-adaptor/CMakeLists.txt b/src/utc/dali-adaptor/CMakeLists.txt index 11c1abb..e640a71 100755 --- a/src/utc/dali-adaptor/CMakeLists.txt +++ b/src/utc/dali-adaptor/CMakeLists.txt @@ -54,7 +54,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") SET(EXE_DALI_CORE_CTS_LINKER_FLAGS "-L${${CAPI_LIB}_LIBRARY_DIRS} -ldali-core -ldali-adaptor ") SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${EXE_DALI_CORE_CTS_LINKER_FLAGS}") diff --git a/src/utc/dali-core/CMakeLists.txt b/src/utc/dali-core/CMakeLists.txt index dadda9f..5d480ff 100755 --- a/src/utc/dali-core/CMakeLists.txt +++ b/src/utc/dali-core/CMakeLists.txt @@ -159,7 +159,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") SET(EXE_DALI_CORE_CTS_LINKER_FLAGS "-L${${CAPI_LIB}_LIBRARY_DIRS} -ldali-core -ldali-adaptor ") SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${EXE_DALI_CORE_CTS_LINKER_FLAGS}") diff --git a/src/utc/dali-toolkit/CMakeLists.txt b/src/utc/dali-toolkit/CMakeLists.txt index 73c46bc..616fe07 100755 --- a/src/utc/dali-toolkit/CMakeLists.txt +++ b/src/utc/dali-toolkit/CMakeLists.txt @@ -107,7 +107,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") SET(EXE_DALI_CORE_CTS_LINKER_FLAGS "-L${${CAPI_LIB}_LIBRARY_DIRS} -ldali-core -ldali-adaptor ") SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${EXE_DALI_CORE_CTS_LINKER_FLAGS}") diff --git a/src/utc/data-control/CMakeLists.txt b/src/utc/data-control/CMakeLists.txt index b5cc2ea..ade6c27 100755 --- a/src/utc/data-control/CMakeLists.txt +++ b/src/utc/data-control/CMakeLists.txt @@ -38,7 +38,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall ${EXTRA_CFLAGS} -fprofile-arcs -ftest-coverage") diff --git a/src/utc/device/CMakeLists.txt b/src/utc/device/CMakeLists.txt index 94cac6c..1b98b9d 100755 --- a/src/utc/device/CMakeLists.txt +++ b/src/utc/device/CMakeLists.txt @@ -43,7 +43,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/dlog/CMakeLists.txt b/src/utc/dlog/CMakeLists.txt index 811775b..aa58511 100755 --- a/src/utc/dlog/CMakeLists.txt +++ b/src/utc/dlog/CMakeLists.txt @@ -31,7 +31,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/efl-ext/CMakeLists.txt b/src/utc/efl-ext/CMakeLists.txt index 31f35c5..cb479b0 100755 --- a/src/utc/efl-ext/CMakeLists.txt +++ b/src/utc/efl-ext/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/efl-util/CMakeLists.txt b/src/utc/efl-util/CMakeLists.txt index a14c830..fc3dfb7 100755 --- a/src/utc/efl-util/CMakeLists.txt +++ b/src/utc/efl-util/CMakeLists.txt @@ -30,7 +30,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/email/CMakeLists.txt b/src/utc/email/CMakeLists.txt index b689ee2..f506060 100755 --- a/src/utc/email/CMakeLists.txt +++ b/src/utc/email/CMakeLists.txt @@ -31,7 +31,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) add_definitions(-DCONFIGFILE_PATH=${CONFIGFILEPATH}) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/eom/CMakeLists.txt b/src/utc/eom/CMakeLists.txt index 87904dc..e0eb50d 100755 --- a/src/utc/eom/CMakeLists.txt +++ b/src/utc/eom/CMakeLists.txt @@ -36,7 +36,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/fido-client/CMakeLists.txt b/src/utc/fido-client/CMakeLists.txt index 56740ed..1885bbe 100755 --- a/src/utc/fido-client/CMakeLists.txt +++ b/src/utc/fido-client/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/geofence-manager/CMakeLists.txt b/src/utc/geofence-manager/CMakeLists.txt index 5d1b9e2..68ff572 100755 --- a/src/utc/geofence-manager/CMakeLists.txt +++ b/src/utc/geofence-manager/CMakeLists.txt @@ -32,7 +32,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/http/CMakeLists.txt b/src/utc/http/CMakeLists.txt index 2190234..4d3a35e 100755 --- a/src/utc/http/CMakeLists.txt +++ b/src/utc/http/CMakeLists.txt @@ -30,7 +30,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/image-util/CMakeLists.txt b/src/utc/image-util/CMakeLists.txt index 656a989..3041b84 100755 --- a/src/utc/image-util/CMakeLists.txt +++ b/src/utc/image-util/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/iotcon/CMakeLists.txt b/src/utc/iotcon/CMakeLists.txt index 1001122..f7982be 100755 --- a/src/utc/iotcon/CMakeLists.txt +++ b/src/utc/iotcon/CMakeLists.txt @@ -18,7 +18,7 @@ SET(TC_SOURCES ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/key-manager/CMakeLists.txt b/src/utc/key-manager/CMakeLists.txt index ce2f24b..b0e90a0 100755 --- a/src/utc/key-manager/CMakeLists.txt +++ b/src/utc/key-manager/CMakeLists.txt @@ -43,7 +43,7 @@ INSTALL(FILES DESTINATION /usr/share/utc_key-manager/) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/libfeedback/CMakeLists.txt b/src/utc/libfeedback/CMakeLists.txt index 24222cb..c7c0d47 100755 --- a/src/utc/libfeedback/CMakeLists.txt +++ b/src/utc/libfeedback/CMakeLists.txt @@ -31,7 +31,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/libstorage/CMakeLists.txt b/src/utc/libstorage/CMakeLists.txt index 7e57e0e..402970b 100755 --- a/src/utc/libstorage/CMakeLists.txt +++ b/src/utc/libstorage/CMakeLists.txt @@ -32,7 +32,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/libstorage64/CMakeLists.txt b/src/utc/libstorage64/CMakeLists.txt index 8ef5981..fd6709f 100755 --- a/src/utc/libstorage64/CMakeLists.txt +++ b/src/utc/libstorage64/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/location-manager/CMakeLists.txt b/src/utc/location-manager/CMakeLists.txt index 759f064..e2081fb 100755 --- a/src/utc/location-manager/CMakeLists.txt +++ b/src/utc/location-manager/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/media-content/CMakeLists.txt b/src/utc/media-content/CMakeLists.txt index c817d43..60cc802 100755 --- a/src/utc/media-content/CMakeLists.txt +++ b/src/utc/media-content/CMakeLists.txt @@ -49,7 +49,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/media-controller/CMakeLists.txt b/src/utc/media-controller/CMakeLists.txt index 9feeafc..9d615d7 100755 --- a/src/utc/media-controller/CMakeLists.txt +++ b/src/utc/media-controller/CMakeLists.txt @@ -32,7 +32,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/media-key/CMakeLists.txt b/src/utc/media-key/CMakeLists.txt index acf3a82..5faf96f 100755 --- a/src/utc/media-key/CMakeLists.txt +++ b/src/utc/media-key/CMakeLists.txt @@ -31,7 +31,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/mediacodec/CMakeLists.txt b/src/utc/mediacodec/CMakeLists.txt index 9147518..c8c4f16 100755 --- a/src/utc/mediacodec/CMakeLists.txt +++ b/src/utc/mediacodec/CMakeLists.txt @@ -32,7 +32,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/mediademuxer/CMakeLists.txt b/src/utc/mediademuxer/CMakeLists.txt index e01cad4..747198f 100755 --- a/src/utc/mediademuxer/CMakeLists.txt +++ b/src/utc/mediademuxer/CMakeLists.txt @@ -31,7 +31,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/mediamuxer/CMakeLists.txt b/src/utc/mediamuxer/CMakeLists.txt index b503791..33ab837 100755 --- a/src/utc/mediamuxer/CMakeLists.txt +++ b/src/utc/mediamuxer/CMakeLists.txt @@ -31,7 +31,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/mediatool/CMakeLists.txt b/src/utc/mediatool/CMakeLists.txt index f274657..4fbe4d9 100755 --- a/src/utc/mediatool/CMakeLists.txt +++ b/src/utc/mediatool/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/messages/CMakeLists.txt b/src/utc/messages/CMakeLists.txt index be57f1b..1b82eb9 100755 --- a/src/utc/messages/CMakeLists.txt +++ b/src/utc/messages/CMakeLists.txt @@ -32,7 +32,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/metadata-editor/CMakeLists.txt b/src/utc/metadata-editor/CMakeLists.txt index 287e5ca..f373da0 100755 --- a/src/utc/metadata-editor/CMakeLists.txt +++ b/src/utc/metadata-editor/CMakeLists.txt @@ -30,7 +30,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/metadata-extractor/CMakeLists.txt b/src/utc/metadata-extractor/CMakeLists.txt index 56759f6..045a80c 100755 --- a/src/utc/metadata-extractor/CMakeLists.txt +++ b/src/utc/metadata-extractor/CMakeLists.txt @@ -30,7 +30,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/mime-type/CMakeLists.txt b/src/utc/mime-type/CMakeLists.txt index 4340274..6786029 100755 --- a/src/utc/mime-type/CMakeLists.txt +++ b/src/utc/mime-type/CMakeLists.txt @@ -30,7 +30,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/minicontrol/CMakeLists.txt b/src/utc/minicontrol/CMakeLists.txt index 5b5e9a1..bf101da 100755 --- a/src/utc/minicontrol/CMakeLists.txt +++ b/src/utc/minicontrol/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/motion/CMakeLists.txt b/src/utc/motion/CMakeLists.txt index 00d3c56..e4dd6dd 100755 --- a/src/utc/motion/CMakeLists.txt +++ b/src/utc/motion/CMakeLists.txt @@ -31,7 +31,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/mtp/CMakeLists.txt b/src/utc/mtp/CMakeLists.txt index 080e2b1..00f0dce 100755 --- a/src/utc/mtp/CMakeLists.txt +++ b/src/utc/mtp/CMakeLists.txt @@ -36,7 +36,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/native-common/CMakeLists.txt b/src/utc/native-common/CMakeLists.txt index 4fb95ba..fd6b5f7 100755 --- a/src/utc/native-common/CMakeLists.txt +++ b/src/utc/native-common/CMakeLists.txt @@ -32,7 +32,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/nfc/CMakeLists.txt b/src/utc/nfc/CMakeLists.txt index 7530483..ea0379f 100755 --- a/src/utc/nfc/CMakeLists.txt +++ b/src/utc/nfc/CMakeLists.txt @@ -34,7 +34,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/notification/CMakeLists.txt b/src/utc/notification/CMakeLists.txt index 0e693ee..14ceb69 100755 --- a/src/utc/notification/CMakeLists.txt +++ b/src/utc/notification/CMakeLists.txt @@ -30,7 +30,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/nsd/CMakeLists.txt b/src/utc/nsd/CMakeLists.txt index ee9c1a2..eb4fe64 100755 --- a/src/utc/nsd/CMakeLists.txt +++ b/src/utc/nsd/CMakeLists.txt @@ -62,7 +62,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/oauth2/CMakeLists.txt b/src/utc/oauth2/CMakeLists.txt index 6ae6097..ec72e02 100755 --- a/src/utc/oauth2/CMakeLists.txt +++ b/src/utc/oauth2/CMakeLists.txt @@ -31,7 +31,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/package-manager/CMakeLists.txt b/src/utc/package-manager/CMakeLists.txt index 01058a9..2cca66d 100755 --- a/src/utc/package-manager/CMakeLists.txt +++ b/src/utc/package-manager/CMakeLists.txt @@ -74,7 +74,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/phonenumber-utils/CMakeLists.txt b/src/utc/phonenumber-utils/CMakeLists.txt index a02c1cc..b0fb250 100755 --- a/src/utc/phonenumber-utils/CMakeLists.txt +++ b/src/utc/phonenumber-utils/CMakeLists.txt @@ -37,7 +37,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/player/CMakeLists.txt b/src/utc/player/CMakeLists.txt index 7d9b2fe..38aebef 100755 --- a/src/utc/player/CMakeLists.txt +++ b/src/utc/player/CMakeLists.txt @@ -41,7 +41,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/privilege-info/CMakeLists.txt b/src/utc/privilege-info/CMakeLists.txt index 8ecba17..87dfbee 100755 --- a/src/utc/privilege-info/CMakeLists.txt +++ b/src/utc/privilege-info/CMakeLists.txt @@ -32,7 +32,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/push/CMakeLists.txt b/src/utc/push/CMakeLists.txt index 37d4e7a..e4fa019 100755 --- a/src/utc/push/CMakeLists.txt +++ b/src/utc/push/CMakeLists.txt @@ -36,7 +36,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/radio/CMakeLists.txt b/src/utc/radio/CMakeLists.txt index a263483..332c90d 100755 --- a/src/utc/radio/CMakeLists.txt +++ b/src/utc/radio/CMakeLists.txt @@ -30,7 +30,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/recorder/CMakeLists.txt b/src/utc/recorder/CMakeLists.txt index 9cbde11..64c0053 100755 --- a/src/utc/recorder/CMakeLists.txt +++ b/src/utc/recorder/CMakeLists.txt @@ -37,7 +37,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/runtime-info/CMakeLists.txt b/src/utc/runtime-info/CMakeLists.txt index 51d3a87..b26511d 100755 --- a/src/utc/runtime-info/CMakeLists.txt +++ b/src/utc/runtime-info/CMakeLists.txt @@ -30,7 +30,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/screen-mirroring/CMakeLists.txt b/src/utc/screen-mirroring/CMakeLists.txt index 83427dd..652c4c2 100755 --- a/src/utc/screen-mirroring/CMakeLists.txt +++ b/src/utc/screen-mirroring/CMakeLists.txt @@ -31,7 +31,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) add_definitions(-DCONFIGFILE_PATH=${CONFIGFILEPATH}) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/sensor/CMakeLists.txt b/src/utc/sensor/CMakeLists.txt index 50aee1d..ae09e54 100755 --- a/src/utc/sensor/CMakeLists.txt +++ b/src/utc/sensor/CMakeLists.txt @@ -31,7 +31,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/service-adaptor/CMakeLists.txt b/src/utc/service-adaptor/CMakeLists.txt index 10f9151..29e1ff3 100755 --- a/src/utc/service-adaptor/CMakeLists.txt +++ b/src/utc/service-adaptor/CMakeLists.txt @@ -41,7 +41,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/shortcut/CMakeLists.txt b/src/utc/shortcut/CMakeLists.txt index 42aa1a2..2d53c30 100755 --- a/src/utc/shortcut/CMakeLists.txt +++ b/src/utc/shortcut/CMakeLists.txt @@ -30,7 +30,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/smartcard/CMakeLists.txt b/src/utc/smartcard/CMakeLists.txt index dbef4e1..575a9c1 100755 --- a/src/utc/smartcard/CMakeLists.txt +++ b/src/utc/smartcard/CMakeLists.txt @@ -37,7 +37,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/sound-manager/CMakeLists.txt b/src/utc/sound-manager/CMakeLists.txt index ce78639..28c769b 100755 --- a/src/utc/sound-manager/CMakeLists.txt +++ b/src/utc/sound-manager/CMakeLists.txt @@ -31,7 +31,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/streamrecorder/CMakeLists.txt b/src/utc/streamrecorder/CMakeLists.txt index f346251..e45d7b7 100755 --- a/src/utc/streamrecorder/CMakeLists.txt +++ b/src/utc/streamrecorder/CMakeLists.txt @@ -36,7 +36,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/stt/CMakeLists.txt b/src/utc/stt/CMakeLists.txt index 6f50c13..ff076d7 100755 --- a/src/utc/stt/CMakeLists.txt +++ b/src/utc/stt/CMakeLists.txt @@ -31,7 +31,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/sync-manager/CMakeLists.txt b/src/utc/sync-manager/CMakeLists.txt index 4cda401..85ebbd0 100755 --- a/src/utc/sync-manager/CMakeLists.txt +++ b/src/utc/sync-manager/CMakeLists.txt @@ -34,7 +34,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/system-info/CMakeLists.txt b/src/utc/system-info/CMakeLists.txt index 20eb7e6..9445ec8 100755 --- a/src/utc/system-info/CMakeLists.txt +++ b/src/utc/system-info/CMakeLists.txt @@ -30,7 +30,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/system-settings/CMakeLists.txt b/src/utc/system-settings/CMakeLists.txt index 6303c66..d410296 100755 --- a/src/utc/system-settings/CMakeLists.txt +++ b/src/utc/system-settings/CMakeLists.txt @@ -31,7 +31,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/tbm/CMakeLists.txt b/src/utc/tbm/CMakeLists.txt index bfb8df4..da9f22a 100755 --- a/src/utc/tbm/CMakeLists.txt +++ b/src/utc/tbm/CMakeLists.txt @@ -32,7 +32,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/telephony/CMakeLists.txt b/src/utc/telephony/CMakeLists.txt index 8922785..ba6fc41 100755 --- a/src/utc/telephony/CMakeLists.txt +++ b/src/utc/telephony/CMakeLists.txt @@ -34,7 +34,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/thumbnail-util/CMakeLists.txt b/src/utc/thumbnail-util/CMakeLists.txt index a50359c..1a95516 100755 --- a/src/utc/thumbnail-util/CMakeLists.txt +++ b/src/utc/thumbnail-util/CMakeLists.txt @@ -32,7 +32,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/tone-player/CMakeLists.txt b/src/utc/tone-player/CMakeLists.txt index c795ea1..4adf3da 100755 --- a/src/utc/tone-player/CMakeLists.txt +++ b/src/utc/tone-player/CMakeLists.txt @@ -30,7 +30,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/trace/CMakeLists.txt b/src/utc/trace/CMakeLists.txt index 64c57f8..4d96365 100755 --- a/src/utc/trace/CMakeLists.txt +++ b/src/utc/trace/CMakeLists.txt @@ -32,7 +32,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/tts/CMakeLists.txt b/src/utc/tts/CMakeLists.txt index e241538..cc12ebc 100755 --- a/src/utc/tts/CMakeLists.txt +++ b/src/utc/tts/CMakeLists.txt @@ -32,7 +32,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/url-download/CMakeLists.txt b/src/utc/url-download/CMakeLists.txt index 394fdce..8dcf465 100755 --- a/src/utc/url-download/CMakeLists.txt +++ b/src/utc/url-download/CMakeLists.txt @@ -73,7 +73,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/video-util/CMakeLists.txt b/src/utc/video-util/CMakeLists.txt index 59d40e5..7342a2b 100755 --- a/src/utc/video-util/CMakeLists.txt +++ b/src/utc/video-util/CMakeLists.txt @@ -31,7 +31,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/voice-control-elm/CMakeLists.txt b/src/utc/voice-control-elm/CMakeLists.txt index af9bf61..73762f7 100755 --- a/src/utc/voice-control-elm/CMakeLists.txt +++ b/src/utc/voice-control-elm/CMakeLists.txt @@ -34,7 +34,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/voice-control/CMakeLists.txt b/src/utc/voice-control/CMakeLists.txt index fe5cf38..2dd2283 100755 --- a/src/utc/voice-control/CMakeLists.txt +++ b/src/utc/voice-control/CMakeLists.txt @@ -32,7 +32,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/vpn/CMakeLists.txt b/src/utc/vpn/CMakeLists.txt index d4b23a2..d977c4a 100755 --- a/src/utc/vpn/CMakeLists.txt +++ b/src/utc/vpn/CMakeLists.txt @@ -59,7 +59,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} add_definitions(-DCONFIGFILE_PATH=${CONFIGFILEPATH}) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/wav-player/CMakeLists.txt b/src/utc/wav-player/CMakeLists.txt index 57532b8..54b0313 100755 --- a/src/utc/wav-player/CMakeLists.txt +++ b/src/utc/wav-player/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/webkit2/CMakeLists.txt b/src/utc/webkit2/CMakeLists.txt index a40bf02..5235a39 100755 --- a/src/utc/webkit2/CMakeLists.txt +++ b/src/utc/webkit2/CMakeLists.txt @@ -168,7 +168,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/widget_service/CMakeLists.txt b/src/utc/widget_service/CMakeLists.txt index 20638e5..71e5180 100755 --- a/src/utc/widget_service/CMakeLists.txt +++ b/src/utc/widget_service/CMakeLists.txt @@ -32,7 +32,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/widget_viewer_evas/CMakeLists.txt b/src/utc/widget_viewer_evas/CMakeLists.txt index 2296dc5..aaa1c71 100755 --- a/src/utc/widget_viewer_evas/CMakeLists.txt +++ b/src/utc/widget_viewer_evas/CMakeLists.txt @@ -33,7 +33,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/wifi-direct/CMakeLists.txt b/src/utc/wifi-direct/CMakeLists.txt index f5a9047..5c97a88 100755 --- a/src/utc/wifi-direct/CMakeLists.txt +++ b/src/utc/wifi-direct/CMakeLists.txt @@ -66,7 +66,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} ) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/src/utc/wifi/CMakeLists.txt b/src/utc/wifi/CMakeLists.txt index dffe835..cbb6da3 100755 --- a/src/utc/wifi/CMakeLists.txt +++ b/src/utc/wifi/CMakeLists.txt @@ -35,7 +35,7 @@ INSTALL(PROGRAMS ${EXEC_NAME} add_definitions(-DCONFIGFILE_PATH=${CONFIGFILEPATH}) IF( DEFINED ASAN ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fno-omit-frame-pointer") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address") ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall") diff --git a/templates/external_wrapper_asan/external_wrapper.sh b/templates/external_wrapper_asan/external_wrapper.sh index 5ce7e97..0536d3b 100755 --- a/templates/external_wrapper_asan/external_wrapper.sh +++ b/templates/external_wrapper_asan/external_wrapper.sh @@ -78,14 +78,15 @@ function Execute { rm -f $ERRLOG_PATH fi ############################## address sanitizer ############################ - echo "\n\n======================= Address Sanitizer Info =======================" + echo "\n\n=========================== Address Sanitizer Info ===========================" ASAN_RESULT=`ls /tmp/asan_test` if [[ $ASAN_RESULT == "" ]];then echo "ASAN Did Not Find Any Memory Corruption Issue During Execution" else + echo "--ASAN Found Following Memory Corruption Issue During Execution--" cat $ASAN_DIR/$ASAN_RESULT fi - echo "================================================================" + echo "================================================================================" ############################################################################# exit 1 fi diff --git a/templates/tct-package-asan/inst.sh b/templates/tct-package-asan/inst.sh index 7abb3a2..24ea2af 100755 --- a/templates/tct-package-asan/inst.sh +++ b/templates/tct-package-asan/inst.sh @@ -80,6 +80,10 @@ function installpkg(){ date -s "1 JUL 2015 00:00:00" fi + ###################### address sanitizer ######################### + echo "User System rwx" | smackload + ################################################################## + if [ ! -d $DEVICE_SUITE_TARGET_30/res/ ]; then mkdir $DEVICE_SUITE_TARGET_30/res fi -- 2.7.4