It's explicitly forbidden to call fclose with NULL, but at least on Darwin, this succeeds and doesn't segfault. To maintain binary compatibility, ASan should survice fclose(NULL) as well.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Differential D40053
[asan] Don't crash on fclose(NULL) kubamracek on Nov 14 2017, 3:20 PM. Authored by
Details It's explicitly forbidden to call fclose with NULL, but at least on Darwin, this succeeds and doesn't segfault. To maintain binary compatibility, ASan should survice fclose(NULL) as well.
Diff Detail
|