DescriptionClear statement before closing db in cookie code.
sql::Statement maintains a weak ref to the associated sql::Connection,
meaning that if the database and statement are destructed in the wrong
order, a use-after-free can result. sql::Statement::Clear() allows
resetting the statement to the default-constructed state.
BUG=111376
TEST=fewer crashes.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=122430
Patch Set 1 #
Messages
Total messages: 6 (0 generated)
|