-
Notifications
You must be signed in to change notification settings - Fork 639
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ws: directly iterate over internal callbacks array (#2248)
- Loading branch information
Showing
1 changed file
with
10 additions
and
35 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
Turns out this causes iterator to reference already moved moved
callbacks
, which is invalid and will crash with things likehaconfig
where we use this ctor by manually moving callbacks in to the storagecallbacks arg -> cbs
current(callbacks.begin()) -> current(cbs.begin())