Commit 111d75b
committed
librlist: fix use-after-free after rlist_remove_ranks()
Problem: rlist_remove_rank() removes the requested rnode from the rlist
nodes list, but doesn't delete the item from the rank hash. This can
lead to a use-after-free if the removed rank is looked up after this.
Call rank_hash_delete() after the rank is deleted from the nodes list
to ensure references to the removed rnode.1 parent e479077 commit 111d75b
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
| 401 | + | |
401 | 402 | | |
402 | 403 | | |
403 | 404 | | |
| |||
0 commit comments