On Fri, Jan 17, 2025 at 5:34 PM Chet Ramey <chet.ra...@case.edu> wrote:
>
> On 1/17/25 4:57 PM, Grisha Levit wrote:
> > On Fri, Jan 17, 2025 at 4:47 PM Grisha Levit <grishale...@gmail.com> wrote:
> >>
> >> On Fri, Jan 17, 2025 at 9:31 AM Chet Ramey <chet.ra...@case.edu> wrote:
> >>>
> >>> On 1/15/25 4:08 PM, Grisha Levit wrote:
> >>>> Another undo list UAF. Related, I think, to edit-and-execute-command.
> >>>>
> >>>> HISTFILE= INPUTRC=/ bash --norc -in <<< $' \n\cP \cN\cP\cU\cX\cE\n\e<'
> >>>
> >>> I can't reproduce this on macOS.
> >>>
> >>
> >> I just tried a fresh build on macOS (15.2, arm64) and see the same result:
> >>
> >> $ ./configure CFLAGS='-fsanitize=address'
> >
> > And in a non-ASAN build:
>
> Nope. Not on intel running 15.1.1, either.

Very odd, I just tried intel 15.1.1 and still see the error.
Do you have the same clang version? Or any suppressions in ASAN_OPTIONS?


$ uname -a
Darwin MacBookPro.lan 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10
21:02:27 PDT 2024; root:xnu-11215.41.3~2/RELEASE_X86_64 x86_64

$ clang --version
Apple clang version 16.0.0 (clang-1600.0.26.6)
Target: x86_64-apple-darwin24.1.0
Thread model: posix
InstalledDir: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

$ PS1='$ ' HISTFILE= INPUTRC=/ ./bash --norc -in <<< $' \n\cP
\cN\cP\cU\cX\cE\n\e<'
bash(32182,0x7ff84c1e6b40) malloc: nano zone abandoned due to
inability to reserve vm space.
$
$
$
$
=================================================================
==32182==ERROR: AddressSanitizer: heap-use-after-free on address
0x60300000aee8 ...

Reply via email to