Commit bbdf041
committed
fix: double free of the new name on a late rename failure
After the destination name buffers are assigned to fromdentry, a later
failure (e.g. fs_add_key_to_hash_table) reached out_free, which freed
those same buffers because ret < 0 — leaving fromdentry with dangling
name/platform_safe_name pointers that are freed again when the dentry is
disposed. Clear the locals once ownership moves to fromdentry.1 parent e379b4e commit bbdf041
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
868 | 868 | | |
869 | 869 | | |
870 | 870 | | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
871 | 875 | | |
872 | 876 | | |
873 | 877 | | |
| |||
0 commit comments