commit | dfc059da55983a124a9b7fbb8daf44ad159b1112 | [log] [tgz] |
---|---|---|
author | George Burgess IV <gbiv@google.com> | Mon Aug 31 10:40:27 2020 -0700 |
committer | George Burgess IV <gbiv@google.com> | Mon Aug 31 10:40:27 2020 -0700 |
tree | ddc9be501dd064195641c088fb2f3328dd03b15c | |
parent | d12e76b65c36733f7267bb09b2604fe6fd74e38b [diff] |
apex_file: fix a use of uninitialized memory If opening the `unique_fd` here fails, we'll call `CloseArchive(garbage)`, which could be harmful. It looks like OpenArchiveFd initializes `handle` to _something_ even on failure, so we don't obviously have to move it below the `ret < 0` block. Bug: None Test: TreeHugger Change-Id: I46ecfdc86264109e77699eb73474a515400d96cf