mirror of
https://github.com/python/cpython.git
synced 2026-04-16 00:31:03 +00:00
[3.14] gh-145792: Fix incorrect alloca allocation size in traceback.c (GH-145814) (#145909)
gh-145792: Fix incorrect alloca allocation size in traceback.c (GH-145814)
(cherry picked from commit 59d97683c1)
Co-authored-by: VanshAgarwal24036 <148854295+VanshAgarwal24036@users.noreply.github.com>
This commit is contained in:
parent
485699216f
commit
d9c26676b2
2 changed files with 3 additions and 1 deletions
|
|
@ -42,7 +42,7 @@
|
|||
|
||||
#if defined(__STDC_NO_VLA__) && (__STDC_NO_VLA__ == 1)
|
||||
/* Use alloca() for VLAs. */
|
||||
# define VLA(type, name, size) type *name = alloca(size)
|
||||
# define VLA(type, name, size) type *name = alloca(sizeof(type) * (size))
|
||||
#elif !defined(__STDC_NO_VLA__) || (__STDC_NO_VLA__ == 0)
|
||||
/* Use actual C VLAs.*/
|
||||
# define VLA(type, name, size) type name[size]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue