From patchwork Mon Dec 20 23:59:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Augusto von Dentz X-Patchwork-Id: 526658 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A711BC433EF for ; Mon, 20 Dec 2021 23:59:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233193AbhLTX71 (ORCPT ); Mon, 20 Dec 2021 18:59:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229747AbhLTX70 (ORCPT ); Mon, 20 Dec 2021 18:59:26 -0500 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E85BC061574 for ; Mon, 20 Dec 2021 15:59:26 -0800 (PST) Received: by mail-pf1-x42c.google.com with SMTP id v13so10114202pfi.3 for ; Mon, 20 Dec 2021 15:59:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=9gioiTWwalIa5OF/HF4UybI9NBTE5c0RS3SWUdaQliA=; b=p0SyZh7GJrQmbK7ojjoz/R6f+eL116ySJKK96AkvkoAcMAYHr3NfuQWrKOZZXmc0Sa W1c2y+lYxDKUyaniPf6hd0Bnl4F4dk2QgbjBjNHL01LZfohnxEeFEzjaY7MFnW/d9jh6 7W/ui2Yp74iNeSiPJs0zFShWA4bZLNH6F8YYWy5rjkORfvLY/7QOB7FzAEYmhVBxf2YF X4Qpl/yvJ0qpvmlZG9q5ro8fOo31Tt6OcpBgO8bGS6V1ojAGKZU1dByUv8+CM5IMHVGV 4Hy8irBT2hPsf35Nx3pAHb/RMrO2xedSBIePbzVB+s/7tqgKno0SqmGquk44rrbIZVgq aacA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=9gioiTWwalIa5OF/HF4UybI9NBTE5c0RS3SWUdaQliA=; b=CWeklg/LPKZic+A/pIHLWE6SpijDQ34oCucNX3Mn1Nzg5zdGsNEjJRO8JMm9Bnl6UH zTB3r0K1dUPwMa0JWgcwIm/zuHU4Z10HmmKJRzJeUz5d8mN8PVLarOCRsKIRkroWf3Vn cx17NNfodXnjpbDeThwogmvMyGz/Apyn09dOKUq0aAKJnVkwbJJNonk9zYEPt0l7PAel oPx/7yODZ+r3fcbVf+toDhqES4z6hcG3+oA0NkUyRjEXJ2eWNeFbaFc6CEHuKf3VgYva JQF0EU0ZDVGWXh92v3SprRzjOk3BBzXb2/lK5SU8RWjCNEg3/fXyPQrW/7UmSOQ13AmY G6LQ== X-Gm-Message-State: AOAM53086Pa/FCGbEX62Bmnxso9H3ZY0pqu1eMIqZDlBfz0iSmYeg5vW CUuc6QAi7T0WoRXTwbdS0qxvUZueUac= X-Google-Smtp-Source: ABdhPJz9dpbbGINWrc+DDhf8SgQq122Z3Z5YDOszN9bhw1hyB9z/jrJ4dH7T9JjSwxA+cbNVBFOPKA== X-Received: by 2002:a65:5c88:: with SMTP id a8mr472218pgt.542.1640044765711; Mon, 20 Dec 2021 15:59:25 -0800 (PST) Received: from lvondent-mobl4.. (c-71-56-157-77.hsd1.or.comcast.net. [71.56.157.77]) by smtp.gmail.com with ESMTPSA id x9sm447263pjp.48.2021.12.20.15.59.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Dec 2021 15:59:25 -0800 (PST) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ 1/3] build: Add sanitizer options Date: Mon, 20 Dec 2021 15:59:22 -0800 Message-Id: <20211220235924.349373-1-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Luiz Augusto von Dentz Build using Address Sanitizer (asan), Leak Sanitizer (lsan), or Undefined Behavior Sanitizer (ubsan) by using one of these options for the configure script: --enable-asan --enable-lsan --enable-ubsan For each of these to work, the compiler must support the requested sanitizer and the requisite libraries must be installed (libasan, liblsan, libubsan). --- Makefile.am | 6 +++++ acinclude.m4 | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++ configure.ac | 3 +++ 3 files changed, 84 insertions(+) diff --git a/Makefile.am b/Makefile.am index 993168f00..36ff19340 100644 --- a/Makefile.am +++ b/Makefile.am @@ -243,6 +243,8 @@ src_libshared_glib_la_SOURCES = $(shared_sources) \ src/shared/mainloop-notify.h \ src/shared/mainloop-notify.c \ src/shared/tester.c +src_libshared_glib_la_LDFLAGS = $(AM_LDFLAGS) +src_libshared_glib_la_CFLAGS = $(AM_CFLAGS) src_libshared_mainloop_la_SOURCES = $(shared_sources) \ src/shared/io-mainloop.c \ @@ -250,6 +252,8 @@ src_libshared_mainloop_la_SOURCES = $(shared_sources) \ src/shared/mainloop.h src/shared/mainloop.c \ src/shared/mainloop-notify.h \ src/shared/mainloop-notify.c +src_libshared_mainloop_la_LDFLAGS = $(AM_LDFLAGS) +src_libshared_mainloop_la_CFLAGS = $(AM_CFLAGS) if LIBSHARED_ELL src_libshared_ell_la_SOURCES = $(shared_sources) \ @@ -257,6 +261,8 @@ src_libshared_ell_la_SOURCES = $(shared_sources) \ src/shared/timeout-ell.c \ src/shared/mainloop.h \ src/shared/mainloop-ell.c +src_libshared_ell_la_LDFLAGS = $(AM_LDFLAGS) +src_libshared_ell_la_CFLAGS = $(AM_CFLAGS) endif attrib_sources = attrib/att.h attrib/att-database.h attrib/att.c \ diff --git a/acinclude.m4 b/acinclude.m4 index 529848357..cf9ede408 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -10,6 +10,45 @@ AC_DEFUN([AC_PROG_CC_PIE], [ ]) ]) +AC_DEFUN([AC_PROG_CC_ASAN], [ + AC_CACHE_CHECK([whether ${CC-cc} accepts -fsanitize=address], + ac_cv_prog_cc_asan, [ + echo 'void f(){}' > asan.c + if test -z "`${CC-cc} -fsanitize=address -c asan.c 2>&1`"; then + ac_cv_prog_cc_asan=yes + else + ac_cv_prog_cc_asan=no + fi + rm -rf asan* + ]) +]) + +AC_DEFUN([AC_PROG_CC_LSAN], [ + AC_CACHE_CHECK([whether ${CC-cc} accepts -fsanitize=leak], + ac_cv_prog_cc_lsan, [ + echo 'void f(){}' > lsan.c + if test -z "`${CC-cc} -fsanitize=leak -c lsan.c 2>&1`"; then + ac_cv_prog_cc_lsan=yes + else + ac_cv_prog_cc_lsan=no + fi + rm -rf lsan* + ]) +]) + +AC_DEFUN([AC_PROG_CC_UBSAN], [ + AC_CACHE_CHECK([whether ${CC-cc} accepts -fsanitize=undefined], + ac_cv_prog_cc_ubsan, [ + echo 'void f(){}' > ubsan.c + if test -z "`${CC-cc} -fsanitize=undefined -c ubsan.c 2>&1`"; then + ac_cv_prog_cc_ubsan=yes + else + ac_cv_prog_cc_ubsan=no + fi + rm -rf ubsan* + ]) +]) + AC_DEFUN([COMPILER_FLAGS], [ with_cflags="" if (test "$USE_MAINTAINER_MODE" = "yes"); then @@ -53,6 +92,42 @@ AC_DEFUN([MISC_FLAGS], [ misc_ldflags="$misc_ldflags -pie -Wl,-z,now" fi ]) + AC_ARG_ENABLE(asan, AC_HELP_STRING([--enable-asan], + [enable linking with address sanitizer]), [ + save_LIBS=$LIBS + AC_CHECK_LIB(asan, _init) + LIBS=$save_LIBS + if (test "${enableval}" = "yes" && + test "${ac_cv_lib_asan__init}" = "yes" && + test "${ac_cv_prog_cc_asan}" = "yes"); then + misc_cflags="$misc_cflags -fsanitize=address"; + misc_ldflags="$misc_ldflags -fsanitize=address" + fi + ]) + AC_ARG_ENABLE(lsan, AC_HELP_STRING([--enable-lsan], + [enable linking with address sanitizer]), [ + save_LIBS=$LIBS + AC_CHECK_LIB(lsan, _init) + LIBS=$save_LIBS + if (test "${enableval}" = "yes" && + test "${ac_cv_lib_lsan__init}" = "yes" && + test "${ac_cv_prog_cc_lsan}" = "yes"); then + misc_cflags="$misc_cflags -fsanitize=leak"; + misc_ldflags="$misc_ldflags -fsanitize=leak" + fi + ]) + AC_ARG_ENABLE(ubsan, AC_HELP_STRING([--enable-ubsan], + [enable linking with address sanitizer]), [ + save_LIBS=$LIBS + AC_CHECK_LIB(ubsan, _init) + LIBS=$save_LIBS + if (test "${enableval}" = "yes" && + test "${ac_cv_lib_ubsan__init}" = "yes" && + test "${ac_cv_prog_cc_ubsan}" = "yes"); then + misc_cflags="$misc_cflags -fsanitize=undefined"; + misc_ldflags="$misc_ldflags -fsanitize=undefined" + fi + ]) if (test "$enable_coverage" = "yes"); then misc_cflags="$misc_cflags --coverage" misc_ldflags="$misc_ldflags --coverage" diff --git a/configure.ac b/configure.ac index 2674e30d3..c9a7f40a9 100644 --- a/configure.ac +++ b/configure.ac @@ -23,6 +23,9 @@ AC_C_RESTRICT AC_PROG_CC AM_PROG_CC_C_O AC_PROG_CC_PIE +AC_PROG_CC_ASAN +AC_PROG_CC_LSAN +AC_PROG_CC_UBSAN AC_PROG_INSTALL AC_PROG_MKDIR_P From patchwork Mon Dec 20 23:59:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Augusto von Dentz X-Patchwork-Id: 526118 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 042E0C433F5 for ; Mon, 20 Dec 2021 23:59:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233217AbhLTX71 (ORCPT ); Mon, 20 Dec 2021 18:59:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233050AbhLTX71 (ORCPT ); Mon, 20 Dec 2021 18:59:27 -0500 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 056DFC061574 for ; Mon, 20 Dec 2021 15:59:27 -0800 (PST) Received: by mail-pj1-x1032.google.com with SMTP id j6-20020a17090a588600b001a78a5ce46aso808315pji.0 for ; Mon, 20 Dec 2021 15:59:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=k/fLV8CdKPgoCUJvtnrsdnTjxc7GBN/97gHtX7BSUH4=; b=NSSOamfNhApbDwl2QLC2tf7quoim6VdeBTr2YLDcP6LO8ObD9j0EKxzrWiGDhcw4my K9tqDQitFZEZ4UTp6dh7BsCHWhS/DaqVG2CRAtVEpeFnpnWUq6KArIVrzAYUwaTYjLfc T7Y7dUjBIf19FwSECQ3Evnsg5DtgYjyJ7nsH7qH/6yFI5Q84Yu5Nz7QVQQ/dt4NWoLbW dFhC+O0kz2lwqVo3ZCKo4SUyVMKkYvWHMsj6v/Zn+rEjD1xTNnA5q8x4EK+sNjEMbqiy cI00aOtzhBB0J77nXS5CFy0i/Z28Qmw6Ku8E/JyoAF8+XdVgc0ovnK0mzJBmWaNSibf1 77Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=k/fLV8CdKPgoCUJvtnrsdnTjxc7GBN/97gHtX7BSUH4=; b=5bY2mLaB5TmnFqDZv7HGAjlhwxbhfD3wM7E46t5mK4iXckoW1K5rFZrtXhFsUOfdJg q1UJjnWdgDPF6NHj1VKZLU8wiDmfjR+t6THl7ImLYhXGStNAf3JSPUpiRFOTluioQxXA krEMzA+Y7G2LHP6KkFzAxVu5WQaGabxWvILKO0pUcJ4W/tPtYsEqeB2mt/cfqbVvF5Rd +62YTW6M59cX9DWwGs2uyaSfVrFkQP2JtgZ9zQg/K9OMG2FU0tVtBJ13dIqJmhQWU2KX 73XsLfKJxTgivVTQaCJ8ZqhRF+nYRDT4YE9XLQw0s4k+n76MmM2iDEn43r7DioZLQ/pd TT5A== X-Gm-Message-State: AOAM531Ch/LF51V1eXIiVNF+Jim35DUKnMDVATWf1mvLAi0jCK16zlEg tavATSzdS6+olUFttFpdK6Kq9pLdaxc= X-Google-Smtp-Source: ABdhPJwvBXiupRoQW5OJnv0rCf/BUQaf4uAASl1gwdwergaAOxbnrP9ayH5RNbaJIuq4ehJEfLq3Sw== X-Received: by 2002:a17:902:8a94:b0:149:218c:b0f9 with SMTP id p20-20020a1709028a9400b00149218cb0f9mr552450plo.37.1640044766216; Mon, 20 Dec 2021 15:59:26 -0800 (PST) Received: from lvondent-mobl4.. (c-71-56-157-77.hsd1.or.comcast.net. [71.56.157.77]) by smtp.gmail.com with ESMTPSA id x9sm447263pjp.48.2021.12.20.15.59.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Dec 2021 15:59:25 -0800 (PST) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ 2/3] build: Fix build when sanitizer are enabled Date: Mon, 20 Dec 2021 15:59:23 -0800 Message-Id: <20211220235924.349373-2-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211220235924.349373-1-luiz.dentz@gmail.com> References: <20211220235924.349373-1-luiz.dentz@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Luiz Augusto von Dentz This fixes various issues found when sanitizers are enabled. --- monitor/packet.c | 3 ++- peripheral/main.c | 2 +- profiles/audio/a2dp.c | 5 ++++- profiles/network/bnep.c | 2 +- src/shared/gatt-server.c | 2 -- tools/mesh-gatt/util.c | 11 ++++++++--- tools/test-runner.c | 2 +- 7 files changed, 17 insertions(+), 10 deletions(-) diff --git a/monitor/packet.c b/monitor/packet.c index 71f711dc5..397000644 100644 --- a/monitor/packet.c +++ b/monitor/packet.c @@ -330,7 +330,8 @@ static void print_packet(struct timeval *tv, struct ucred *cred, char ident, if ((filter_mask & PACKET_FILTER_SHOW_INDEX) && index != HCI_DEV_NONE) { if (use_color()) { - n = sprintf(ts_str + ts_pos, "%s", COLOR_INDEX_LABEL); + n = snprintf(ts_str + ts_pos, sizeof(ts_str) - ts_pos, + "%s", COLOR_INDEX_LABEL); if (n > 0) ts_pos += n; } diff --git a/peripheral/main.c b/peripheral/main.c index 0f5210403..91adb45fc 100644 --- a/peripheral/main.c +++ b/peripheral/main.c @@ -73,7 +73,7 @@ static void prepare_filesystem(void) if (!is_init) return; - for (i = 0; mount_table[i].fstype; i++) { + for (i = 0; mount_table[i].fstype && mount_table[i].target; i++) { struct stat st; if (lstat(mount_table[i].target, &st) < 0) { diff --git a/profiles/audio/a2dp.c b/profiles/audio/a2dp.c index eba2f9822..d0808c77a 100644 --- a/profiles/audio/a2dp.c +++ b/profiles/audio/a2dp.c @@ -1338,9 +1338,12 @@ static gboolean a2dp_reconfigure(gpointer data) if (setup->rsep) { cap = avdtp_get_codec(setup->rsep->sep); rsep_codec = (struct avdtp_media_codec_capability *) cap->data; + /* Check that codec really match after closing */ + if (sep->codec != rsep_codec->media_codec_type) + setup->rsep = NULL; } - if (!setup->rsep || sep->codec != rsep_codec->media_codec_type) + if (!setup->rsep) setup->rsep = find_remote_sep(setup->chan, sep); if (!setup->rsep) { diff --git a/profiles/network/bnep.c b/profiles/network/bnep.c index f94f1da8a..ba0edb42c 100644 --- a/profiles/network/bnep.c +++ b/profiles/network/bnep.c @@ -345,7 +345,7 @@ struct bnep *bnep_new(int sk, uint16_t local_role, uint16_t remote_role, session->io = g_io_channel_unix_new(dup_fd); session->src = local_role; session->dst = remote_role; - strncpy(session->iface, iface, 16); + strncpy(session->iface, iface, 15); session->iface[15] = '\0'; g_io_channel_set_close_on_unref(session->io, TRUE); diff --git a/src/shared/gatt-server.c b/src/shared/gatt-server.c index 9beec44be..776e5ce2b 100644 --- a/src/shared/gatt-server.c +++ b/src/shared/gatt-server.c @@ -1119,8 +1119,6 @@ static void read_multiple_cb(struct bt_att_chan *chan, uint8_t opcode, } data = read_mult_data_new(server, chan, opcode, length / 2); - if (!data) - goto error; for (i = 0; i < data->num_handles; i++) data->handles[i] = get_le16(pdu + i * 2); diff --git a/tools/mesh-gatt/util.c b/tools/mesh-gatt/util.c index e845c4112..eb8b8eb29 100644 --- a/tools/mesh-gatt/util.c +++ b/tools/mesh-gatt/util.c @@ -41,9 +41,14 @@ void print_byte_array(const char *prefix, const void *ptr, int len) char *line, *bytes; int i; - line = g_malloc(strlen(prefix) + (16 * 3) + 2); - sprintf(line, "%s ", prefix); - bytes = line + strlen(prefix) + 1; + if (prefix) { + line = g_malloc(strlen(prefix) + (16 * 3) + 2); + sprintf(line, "%s ", prefix); + bytes = line + strlen(prefix) + 1; + } else { + line = g_malloc((16 * 3) + 2); + bytes = line + 1; + } for (i = 0; i < len; ++i) { sprintf(bytes, "%2.2x ", data[i]); diff --git a/tools/test-runner.c b/tools/test-runner.c index eac120f4a..71cc0d2df 100644 --- a/tools/test-runner.c +++ b/tools/test-runner.c @@ -136,7 +136,7 @@ static void prepare_sandbox(void) { int i; - for (i = 0; mount_table[i].fstype; i++) { + for (i = 0; mount_table[i].fstype && mount_table[i].target; i++) { struct stat st; if (lstat(mount_table[i].target, &st) < 0) { From patchwork Mon Dec 20 23:59:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Augusto von Dentz X-Patchwork-Id: 526117 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C1FE9C4332F for ; Mon, 20 Dec 2021 23:59:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233226AbhLTX72 (ORCPT ); Mon, 20 Dec 2021 18:59:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233050AbhLTX72 (ORCPT ); Mon, 20 Dec 2021 18:59:28 -0500 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9CB5C061574 for ; Mon, 20 Dec 2021 15:59:27 -0800 (PST) Received: by mail-pl1-x631.google.com with SMTP id q17so9296308plr.11 for ; Mon, 20 Dec 2021 15:59:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=Y1ismcWgDnFFXISLA/l57y2B3Rq2xdUkaw18gPCSGm0=; b=Vjljshy56cUcnbVtMfk+9ILY7rRahEcV8IB+M6DcZrUB3Q7k9VHFfmHT1F6MvLudvt wJtwaGsi6xotpOF+JGi1faAZ8GqTjnSDoZNZktwKfyHNEgHmHK56W+OJLpQuapLlDKFD aQPiTpPzaa1ciO04pZDp5ZcqRmW/by+mjzV5/YLgtty8YnRECW67kENBPJHajDnBSaDi kY0RKEEatkkbKI2sv+6/vMY5lnJi0WRdH0Ch+NfPWI85IHC8+kKjUOYUWwiZo9Q0WFCn BihFk6pv3XC0/DaQqPT43gGnrGjasBYCEuJ1pQ54B109VybVmCLULvPcw9V7f7C7oDMm lIzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Y1ismcWgDnFFXISLA/l57y2B3Rq2xdUkaw18gPCSGm0=; b=PgKo7aahDwnz5y4wGGe4f/e/5IYuyPdWRATzkfKcyh0zRxYP9ttZAplQC10qGW/ogI NksjyNC9igpo9iKx+f+SB3ZBJ933cDUGeUDKDHADVvhw918wJNoq727jzdl/6pyOP4wg 1aBG/XP9ikfkQIEpbGv9PpwKjsX+kHt5cTgd5rEwJ4sgYCqDOY66+rgfvECm74zE0bhG XFOCOcYjYQZ/vHjNfUY6vGaJN11T6XQ25FPh5o+nd8PAboY/ZVvsF2GEBE2fGp+h4gUk pyEizRnDnCyUGbBXV+9QydrkxlY/VC4metNqImRx2HEbVvGE0j2Umoyzu4Q0JmhDiJUG +sRw== X-Gm-Message-State: AOAM532F29TnN5EieNRHeE4lzrZYQ9f8qnHJUbAVkHRVuRXsQggwZpx3 boH6MeUwpLxClzi0z2JLzzaTjZ5mu4I= X-Google-Smtp-Source: ABdhPJxFpmYfCEP9+NDxlXhcUhg7Q36B6PhhZfptJ+UuV2kmyZB1J9i8Qdsyrg6yBBtj2upN3ckScw== X-Received: by 2002:a17:903:24d:b0:143:beb5:b6b1 with SMTP id j13-20020a170903024d00b00143beb5b6b1mr663767plh.54.1640044767116; Mon, 20 Dec 2021 15:59:27 -0800 (PST) Received: from lvondent-mobl4.. (c-71-56-157-77.hsd1.or.comcast.net. [71.56.157.77]) by smtp.gmail.com with ESMTPSA id x9sm447263pjp.48.2021.12.20.15.59.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Dec 2021 15:59:26 -0800 (PST) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ 3/3] bootstrap-configure: Enable sanitizer options Date: Mon, 20 Dec 2021 15:59:24 -0800 Message-Id: <20211220235924.349373-3-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211220235924.349373-1-luiz.dentz@gmail.com> References: <20211220235924.349373-1-luiz.dentz@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Luiz Augusto von Dentz This makes bootstrap-configure enables all sanitizers. --- bootstrap-configure | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bootstrap-configure b/bootstrap-configure index a34be8320..8172840d5 100755 --- a/bootstrap-configure +++ b/bootstrap-configure @@ -28,6 +28,9 @@ fi --enable-btpclient \ --enable-logger \ --enable-pie \ + --enable-asan \ + --enable-lsan \ + --enable-ubsan \ --enable-cups \ --enable-library \ --enable-admin \