This repository was archived by the owner on Mar 31, 2026. It is now read-only.
Commit 53a5b10
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 c69b447 commit 53a5b10
1 file changed
+4
-3
lines changed| 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