commit | 8241ffb63697b9ae7e91b52e71d36fe17470e43c | [log] [tgz] |
---|---|---|
author | Alex Deymo <deymo@google.com> | Thu Oct 15 10:36:44 2015 -0700 |
committer | Alex Deymo <deymo@google.com> | Thu Oct 15 10:53:42 2015 -0700 |
tree | 42baeedef7e32b8854de65920e72c275097910d3 | |
parent | 906191f88cb2448691e54f7a6a3b464854053154 [diff] |
Print operation names using InstallOperationTypeName(). PayloadFile had a local array to convert from the operation type enum to a human-readable string name. Since the enum is converted to an int this method will not fail to compile whenever new operations are added. This patch removes such array and uses the existing InstallOperationTypeName() function to convert the enum to string. This fixes a buffer overflow in test code that generates new operations. Bug: chromium:543593 Test: USE="clang asan" FEATURES=test emerge-link update_engine Change-Id: Ib8d80711d039edf18a323aefaad4ce96e5dfc2e3