DescriptionAddress 2 crashes in download attribution code.
crbug.com/676675
Out of memory crash caused by memory alloc inside vector::push_back().
Since vector grows its internal buffer following some kind of geometric
progression, it makes more sense to keep pointers inside the vector
instead of actual objects. Therefore, change the
vector<ReferrerChainEntry> into vector<unique_ptr<ReferrerChainEntry>>.
This will help with the memory allocation inside push_back() function.
crbug.com/679252
Add additional check on the return of FindNavigationEvent() function to
make suer it is valid.
BUG=676675, 679252
Review-Url: https://codereview.chromium.org/2624463003
Cr-Commit-Position: refs/heads/master@{#442780}
Committed: https://chromium.googlesource.com/chromium/src/+/d1bf4b965304fb16a99edbd7268dd9ab9a41c76b
Patch Set 1 #
Total comments: 10
Patch Set 2 : address comments from nparker@ #
Total comments: 1
Messages
Total messages: 18 (11 generated)
|