DescriptionFix a use-after-free of SaveFileCreateInfo in SaveFileManager.
For details about the problem see crbug.com/569258.
This CL fixes the problem, by avoiding to post a raw pointer
and instead posting the SaveFileCreateInfo struct by value.
Posting by value is ok, because the target (UI thread) doesn't
modify SaveFileCreateInfo (and I tried to make that explicit
by retaining the "const" qualifier on the parameter declaration).
BUG=569258
Committed: https://crrev.com/5669529aa87b0d38985b592ec08affed7dc6cfdb
Cr-Commit-Position: refs/heads/master@{#365053}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Changing parameter declaration to const-ref. #
Messages
Total messages: 10 (4 generated)
|