[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/31130] Return of Stack Address in C_alloca
From: |
amodra at gmail dot com |
Subject: |
[Bug binutils/31130] Return of Stack Address in C_alloca |
Date: |
Mon, 11 Dec 2023 02:59:39 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=31130
--- Comment #3 from Alan Modra <amodra at gmail dot com> ---
(In reply to yuxuan He from comment #2)
> actually, i don't mean that XNEWVEC return a stack address, i mean "depth"
> is stack address and it has been store into new_storage
That too is not a problem. Given "char *p = C_alloca (size)", any access
outside the range [p, p+size) is undefined behaviour.
--
You are receiving this mail because:
You are on the CC list for the bug.