update_engine: fix heap-buffer-overflow
ASAN error happens depending on library ordering in compile flags (crbug/887845).
This change updates BUILD.gn so that correct library ordering is generated.
BUG=chromium:976843
TEST=setup_board --board=amd64-generic --profile=asan
TEST=./build_packages --board=amd64-generic update_engine
TEST=FEATURES=test emerge-amd64-generic update_engine # Some test fail, but they also fail without ASAN and this modification.
Change-Id: I40bb72f25e7012105eecac5c53d01662d68bf3d7
Reviewed-on: https://chromium-review.googlesource.com/1679810
Tested-by: Manoj Gupta <manojgupta@chromium.org>
Commit-Ready: Manoj Gupta <manojgupta@chromium.org>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Amin Hassani <ahassani@chromium.org>
1 file changed