Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa8037c2 authored by zijunzhao's avatar zijunzhao
Browse files

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
parent a662169c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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() {