Commit 1b627c1
committed
Zero-out msgpack_buffer_chunk_t after allocation
Fix: #341
These struct contain a VALUE reference so if we don't zero
it out, it could be pointing at a T_NONE or some other old
object slot.
Especially since we can re-use existing chunks.1 parent ad67a61 commit 1b627c1
1 file changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
255 | | - | |
256 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
257 | 259 | | |
258 | | - | |
259 | | - | |
| 260 | + | |
| 261 | + | |
260 | 262 | | |
261 | 263 | | |
262 | 264 | | |
| |||
0 commit comments