Handle with the nonnull case in a tricky way
The func readdir() is not allowed to pass a nullptr. Bug: b/245972273 Test: mm Change-Id: Idbb3f552b026dc6d727886d22989d3359ed6633b
This commit is contained in:
parent
a662169c44
commit
fa8037c207
1 changed files with 2 additions and 1 deletions
|
@ -164,7 +164,8 @@ noinline void fprintf_null() {
|
|||
}
|
||||
|
||||
noinline void readdir_null() {
|
||||
readdir(nullptr);
|
||||
DIR* sneaky_null = nullptr;
|
||||
readdir(sneaky_null);
|
||||
}
|
||||
|
||||
noinline int strlen_null() {
|
||||
|
|
Loading…
Reference in a new issue