commit | 20f8aec8976b17ad4d9da6be265594d924f368e1 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Mon May 12 15:15:37 2014 -0700 |
committer | Elliott Hughes <enh@google.com> | Mon May 12 15:15:37 2014 -0700 |
tree | 47ba26f39bdd496b60027c5f63229236ec4bc1a6 | |
parent | ebcc72070499b2ab2d1dee990d6f52814a56600e [diff] |
Fix use-after-free errors in stdio_test. fclose(3) frees the passed-in FILE*. We should close(2) the underlying fd, not fclose(3) the stream, if we want to test what happens with a stream we can't read from. Bug: 14466691 Change-Id: I99fed5904b0266b9c6ae05d0b9cf2e926446c064