Commit 01e4e87
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>1 parent b2a138b commit 01e4e87
1 file changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
594 | 594 | | |
595 | 595 | | |
596 | 596 | | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
597 | 604 | | |
598 | 605 | | |
599 | 606 | | |
600 | 607 | | |
601 | 608 | | |
602 | 609 | | |
603 | 610 | | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
604 | 617 | | |
605 | 618 | | |
606 | 619 | | |
| |||
0 commit comments