commit | e2423780bf482d2eeefa9a958b4793f865cba845 | [log] [tgz] |
---|---|---|
author | Matt Wala <wala@google.com> | Tue Jun 30 10:56:08 2015 -0700 |
committer | Matt Wala <wala@google.com> | Wed Jul 01 10:28:50 2015 -0700 |
tree | 5c62fde219458a82500490a8e0906330fd6c2c07 | |
parent | 6c7dd3b83a44765eec1077bd60627eb04a8d362f [diff] |
Fix static object construction. allocPointersExposed() maintains a static vector to hold a table of function names. Unintentionally, the size of the table could grow with each function call because the entries were being added by appending to the existing object. This can be fixed by using an initialization list instead of a sequence of appends. Also, mark the table as const to ensure the code doesn't try to modify it. Change-Id: I0da0f99928e1614c945befff550b039d4f21e171