| commit | 312b318dfb1d699ec8332abb5ba0e3764cfee121 | [log] [tgz] |
|---|---|---|
| author | Aaron Durbin <[email protected]> | Wed Oct 11 22:32:20 2017 |
| committer | chrome-bot <[email protected]> | Thu Oct 12 07:09:35 2017 |
| tree | 14d9e4da450bd14b703d7580a80bfb9965234e8f | |
| parent | b17e9e418388b4c1275b00df1240c2777f8329f7 [diff] |
cbtable: don't dereference memory that was previously unmapped The backing store for 'head' was being unmapped prior to dereferencing the variable. Don't do that, and calculate the new mapping size prior to unmapping the previous table. BUG=chromium:773801 BRANCH=none TEST=Ran on parrot and didn't segfault. Change-Id: Ic91345b8be50a73d498deba8269dc9e7112d12ee Signed-off-by: Aaron Durbin <[email protected]> Reviewed-on: https://chromium-review.googlesource.com/714396 Reviewed-by: Furquan Shaikh <[email protected]> Reviewed-by: Mike Frysinger <[email protected]>