mirror of
https://github.com/python/cpython.git
synced 2026-04-14 07:41:00 +00:00
gh-145792: Fix incorrect alloca allocation size in traceback.c (#145814)
This commit is contained in:
parent
0b6a2346e5
commit
59d97683c1
2 changed files with 3 additions and 1 deletions
|
|
@ -41,7 +41,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