Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
cksk
· 6mo ago · 0 comments
The array at the end of the struct is not a VLA on the stack. When you allocate the struct, you add enough extra to hold the contents of the array. VLAs on the stack are pretty much universally considered a bad idea, as far as I can tell.
Comments
No comments yet.
Better HN