Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fsmap: switch to using iterator based loop
Segfault was triggered by the fs/mirror test. The problem is in potential undefined behaviour after erasing element and iterator invalidation in FSMap::filter(). Fixed by explicit iterator increment. Fixes: https://tracker.ceph.com/issues/55134 Signed-off-by: Aliaksei Makarau <aliaksei.makarau@ibm.com>
- Loading branch information
1 parent
df19b8d
commit 0933314
Showing
1 changed file
with
22 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters