HomePhabricator

[asan] Don't crash on fclose(NULL)

Description

[asan] Don't crash on fclose(NULL)

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.

Differential Revision: https://reviews.llvm.org/D40053

Details

Committed
kuba.breckaNov 29 2017, 11:43 AM
Differential Revision
D40053: [asan] Don't crash on fclose(NULL)
Branches
Unknown
Tags
Unknown