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:
zijunzhao 2023-03-31 23:50:37 +00:00
parent a662169c44
commit fa8037c207

View file

@ -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() {