WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
158172
Vet every C++ lambda that captures only [this]
https://bugs.webkit.org/show_bug.cgi?id=158172
Summary
Vet every C++ lambda that captures only [this]
Brady Eidson
Reported
2016-05-27 16:55:49 PDT
Vet every C++ lambda that captures only [this] At least a few of them are definitely unsafe, in that they are deferred but don't guarantee the lifetime of `this` I found these by grepping for (pretty much) every lambda usage in WebCore and then narrowing down to [this] captures: grep -rn '\[.*\]\s*\((.*)\)\?\s*{\s*$' . | grep "\[this\]"
Attachments
Add attachment
proposed patch, testcase, etc.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug