commit | b9e195546ee80e46fca5e075c9b1ea069821f18a | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Wed Dec 19 22:55:15 2018 -0800 |
committer | Colin Cross <ccross@android.com> | Wed Dec 19 23:04:42 2018 -0800 |
tree | 67facfdda4183f890cd01858d5b2277cf3047b5f | |
parent | 90c5bfe0776fe185abaf2fc983f5320cb9d6a78f [diff] |
Use vector instead of VLA to avoid uninitialized values I502b34f23d61a7346d79ff0dc378add8461d2d27 added a continue before skip[i] was set, which left it uninitialized and caused non-deterministic output of incident-section-gen incidentd and a non-deterministic incidentd binary. Use a vector instead of a variable length array for skip so that it is always initialized. Test: valgrind incident-section-gen incidentd Change-Id: Iac9778dc8bbf4ec5540e5e2ffdaa8e2dd852d6cc