| commit | cc3d04f03ac0c3d60d00ae021f41f3610bb3b3eb | [log] [tgz] |
|---|---|---|
| author | Elliott Hughes <enh@google.com> | Thu Oct 26 15:38:06 2017 -0700 |
| committer | Elliott Hughes <enh@google.com> | Thu Oct 26 16:16:33 2017 -0700 |
| tree | 83fc235a8357f5b12802ccc3538dd14d38cef456 | |
| parent | c6291b081d2089ba7a16d7777fb2713d828d537f [diff] [blame] |
Add null checks to <dirent.h> functions. Move all the new checks over to the existing __fortify_fatal. Bug: http://b/67455242 Test: ran tests Change-Id: Idb899c58c32d52d3b423caf1a91feb7defcba9b3
diff --git a/libc/private/bionic_fortify.h b/libc/private/bionic_fortify.h index 8591117..7f22963 100644 --- a/libc/private/bionic_fortify.h +++ b/libc/private/bionic_fortify.h
@@ -26,6 +26,8 @@ * SUCH DAMAGE. */ +#pragma once + #include <poll.h> // For struct pollfd. #include <stdarg.h> #include <stdlib.h>