gh-145792: Fix incorrect alloca allocation size in traceback.c (#145814)

This commit is contained in:
VanshAgarwal24036 2026-03-13 17:45:26 +05:30 committed by GitHub
parent 0b6a2346e5
commit 59d97683c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -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]