Commit 7f093fb
committed
module_adapter: generic: Fix use after free
Remove any containers from the free container list so that
we don't keep pointers to containers that are no longer used
and will be freed when container chunks are released below.
Leaving those nodes in the free container list would cause
use-after-free on subsequent allocations.
While at it, make sure all resource lists are reset.
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
(cherry picked from commit 259c32b)1 parent 8d8173b commit 7f093fb
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
580 | 587 | | |
581 | 588 | | |
582 | 589 | | |
583 | 590 | | |
584 | 591 | | |
585 | 592 | | |
586 | 593 | | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
587 | 597 | | |
588 | 598 | | |
589 | 599 | | |
| |||
0 commit comments