Home / Vulnerability Database / C or C++ : Double close file
C/C++
C or C++ : Double close file
Classification
CWE
Overview
When you finish working with a file, you need to use a function that closes it. An attempt to do this twice, i.e., an attempt to close an already closed file may lead to unexpected behavior of the program.
References
MEDIUM
DerScanner Severity Score
Do you want to fix C or C++ : Double close file in your application?
See also
C/C++
C or C++ : Dead store
C/C++
C or C++ : Use after free
C/C++
