You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
step 1 :
In file ht/tools/bin2c.c , function main line 162 :
Function fopen64 executes and stores the return value to out
step 2 :
In file ht/tools/bin2c.c , function main line 163 :
Select the true branch at this point (out!=null is true)
step 3 :
In file ht/tools/bin2c.c , function main lines after line 163
no statement close out
This is the main function of a tiny tool. There is no point in closing the files, as the runtime/OS are required to do it.
It can make sense to add them anyway just on principle and to make various tools like the one you used happy, but it's no bug not to close them
hello , I found three potential bugs of file descriptor leak,would you help me check if these bugs are true?Thank you for your patience and effort.
==============================================================================
step 1 :
In file ht/tools/bin2c.c , function main line 162 :
Function fopen64 executes and stores the return value to out
step 2 :
In file ht/tools/bin2c.c , function main line 163 :
Select the true branch at this point (out!=null is true)
step 3 :
In file ht/tools/bin2c.c , function main lines after line 163
no statement close out
==============================================================================
step 1 :
In file ht/tools/bin2c.c , function main line 157 :
Function fopen64 executes and stores the return value to outh
step 2 :
In file ht/tools/bin2c.c , function main line 158 :
Select the true branch at this point (outh!=null is true)
step 3 :
In file ht/tools/bin2c.c , function main lines after line 158:
no statement close outh
==============================================================================
step 1 :
In file ht/tools/bin2c.c , function main line 140 :
Function fopen executes and stores the return value to in
step 2 :
In file ht/tools/bin2c.c , function main line 141 :
Select the true branch at this point (in!=null is true)
step 3 :
In file ht/tools/bin2c.c , function main lines after line 141:
no statement close in
The text was updated successfully, but these errors were encountered: