This repository was archived by the owner on Apr 5, 2026. It is now read-only.
Commit cbf5545
committed
fix: use-after-free in free_msg_buffers_chunk_internal
C->free_block_queue was accessed after free(C). The memset(C,0,...)
before free() made this "work" (queue pointer was already NULL), but
it's still undefined behavior. Save the queue pointer before freeing
the chunk.
Found by -Werror CI job (GCC 13 -Wuse-after-free).1 parent 6d8031b commit cbf5545
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| 293 | + | |
| 294 | + | |
293 | 295 | | |
294 | 296 | | |
295 | 297 | | |
| |||
302 | 304 | | |
303 | 305 | | |
304 | 306 | | |
305 | | - | |
306 | | - | |
307 | | - | |
| 307 | + | |
| 308 | + | |
308 | 309 | | |
309 | 310 | | |
310 | 311 | | |
| |||
0 commit comments