Commit f4e20f3
committed
lib_manager: fix potential issue with llext_unload
The function llext_unload was modifying a stack variable and not the
actual private member holding the reference. This could have lead to a
double free or invalid access to a freed llext structure.
Signed-off-by: Luca Burelli <l.burelli@arduino.cc>1 parent 28ba78b commit f4e20f3
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
557 | | - | |
558 | 557 | | |
559 | 558 | | |
560 | | - | |
| 559 | + | |
561 | 560 | | |
562 | 561 | | |
563 | 562 | | |
564 | 563 | | |
565 | | - | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
566 | 568 | | |
567 | 569 | | |
568 | 570 | | |
| |||
0 commit comments