Fix crashes due to evaluation order
Due to unspecified function argument evaluation order in C++ some compilers might choose to evaluate base::Passed earlier than subsequent smart pointer access, so we need to be extra careful and save raw pointer values before using them. Otherwise they might no longer be valid by the time we call ptr.get due to the pointer being already modified by the base::Passed. BUG=734325 Change-Id: Icb5a06c42c14018c98ab8ddaffcc1fd41f3111ab Reviewed-on: https://chromium-review.googlesource.com/885091Reviewed-by:Steven Bennetts <stevenjb@chromium.org> Reviewed-by:
Zentaro Kavanagh <zentaro@chromium.org> Commit-Queue: Sergey Volk <servolk@chromium.org> Cr-Commit-Position: refs/heads/master@{#532704}
Showing
Please register or sign in to comment