Commit 36c01fc
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 7d21e90 commit 36c01fc
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
553 | 553 | | |
554 | 554 | | |
555 | 555 | | |
556 | | - | |
557 | 556 | | |
558 | 557 | | |
559 | | - | |
| 558 | + | |
560 | 559 | | |
561 | 560 | | |
562 | 561 | | |
563 | 562 | | |
564 | | - | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
565 | 567 | | |
566 | 568 | | |
567 | 569 | | |
| |||
0 commit comments