Y
Hacker News
new
|
ask
|
show
|
jobs
by
n_plus_1_acc
350 days ago
This is also problematic, because there might be padding and the calculated size might be too small:
`malloc(sizeof(*node) + data_size);`
1 comments
o11c
350 days ago
There's no a problem with the author's
current
code, since the padding is already included in the node size, but it would be a problem after doing alignment more intelligently.
link