OSV 1.4.0 · github-reviewed · 修改于 2023-06-14 01:37
发布时间
2021-08-26 04:55
GitHub 审查时间
2021-08-20 01:04
NVD 发布时间
—
源文件
advisories/github-reviewed/2021/08/GHSA-8gmx-cpcg-f8h5/GHSA-8gmx-cpcg-f8h5.json
The clone_from implementation for IdMap drops the values present in the map and then begins cloning values from the other map. If a .clone() call pancics, then the afformentioned dropped elements can be freed again. get_or_insert
get_or_insert reserves space for a value, before calling the user provided insertion function f. If the function f panics then uninitialized or previously freed memory can be dropped. remove_set
When removing a set of elements, ptr::drop_in_place is called on each of the element to be removed. If the Drop impl of one of these elements panics then the previously dropped elements can be dropped again.