Return-Path: MIME-Version: 1.0 In-Reply-To: References: <1457384483-19894-1-git-send-email-dev@codyps.com> Date: Wed, 9 Mar 2016 11:35:13 +0200 Message-ID: Subject: Re: [PATCH BlueZ] uuid: fix 1 byte stack overflow From: Luiz Augusto von Dentz To: Cody P Schafer Cc: "linux-bluetooth@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Cody, On Tue, Mar 8, 2016 at 6:00 PM, Cody P Schafer wrote: > AddressSanitizer is part of newer gcc & clang versions. > > All I did was build bluez with: > > make CFLAGS=-fsanitize=address\ -fsanitize=undefined\ -ggdb3\ -Wall\ > -Wextra\ -Wno-unused-parameter\ -Wno-missing-field-initializers\ > -Werror LDFLAGS=-pthread -j10 > > The LDFLAGS bit is to work around a bug in binutils, and the warnings > could be omitted if desired. Debug info is needed for address > sanitizer to give line numbers. Alright, we will probably need to add those flags (perhaps with --enable-sanitize) to the build so make check would catch this type of errors.