Displaying test cases 4776 - 4800 of 9725 in total
-
CWE: 404 Improper Resource Shutdown or Release BadSource: fopen Open a file using fopen() Sinks: w32CloseHandle GoodSink: Close the file using fclose() BadSink : Close the file using CloseHandle Flow Variant: 03 Control flow: if(5==5) and if(5!=5)
-
CWE: 404 Improper Resource Shutdown or Release BadSource: fopen Open a file using fopen() Sinks: w32CloseHandle GoodSink: Close the file using fclose() BadSink : Close the file using CloseHandle Flow Variant: 02 Control flow: if(1) and if(0)
-
CWE: 404 Improper Resource Shutdown or Release BadSource: fopen Open a file using fopen() Sinks: w32CloseHandle GoodSink: Close the file using fclose() BadSink : Close the file using CloseHandle Flow Variant: 01 Baseline
-
Declare that the function throws ..., which is valid in Visual Studio, but not gcc. In this test case, we dont actually throw an exception to differentiate it from other test cases.
-
CWE: 377 Insecure Temporary File Sinks: w32GetTempFileName GoodSink: Create and open a temporary file, created with GetTempFileNameW(), more securely BadSink : Create and open a temporary file, created with GetTempFileNameW(), insecurely Flow Variant: 18 Control flow: goto statements
-
CWE: 377 Insecure Temporary File Sinks: w32GetTempFileName GoodSink: Create and open a temporary file, created with GetTempFileNameW(), more securely BadSink : Create and open a temporary file, created with GetTempFileNameW(), insecurely Flow Variant: 17 Control flow: for loops
-
CWE: 377 Insecure Temporary File Sinks: w32GetTempFileName GoodSink: Create and open a temporary file, created with GetTempFileNameW(), more securely BadSink : Create and open a temporary file, created with GetTempFileNameW(), insecurely Flow Variant: 16 Control flow: while(1)
-
CWE: 377 Insecure Temporary File Sinks: w32GetTempFileName GoodSink: Create and open a temporary file, created with GetTempFileNameW(), more securely BadSink : Create and open a temporary file, created with GetTempFileNameW(), insecurely Flow Variant: 15 Control flow: switch(6)
-
CWE: 377 Insecure Temporary File Sinks: w32GetTempFileName GoodSink: Create and open a temporary file, created with GetTempFileNameW(), more securely BadSink : Create and open a temporary file, created with GetTempFileNameW(), insecurely Flow Variant: 14 Control flow: if(globalFive==5) and if...
-
CWE: 377 Insecure Temporary File Sinks: w32GetTempFileName GoodSink: Create and open a temporary file, created with GetTempFileNameW(), more securely BadSink : Create and open a temporary file, created with GetTempFileNameW(), insecurely Flow Variant: 13 Control flow: if(GLOBAL_CONST_FIVE==5)...
-
CWE: 377 Insecure Temporary File Sinks: w32GetTempFileName GoodSink: Create and open a temporary file, created with GetTempFileNameW(), more securely BadSink : Create and open a temporary file, created with GetTempFileNameW(), insecurely Flow Variant: 12 Control flow: if(globalReturnsTrueOrFa...
-
CWE: 377 Insecure Temporary File Sinks: w32GetTempFileName GoodSink: Create and open a temporary file, created with GetTempFileNameW(), more securely BadSink : Create and open a temporary file, created with GetTempFileNameW(), insecurely Flow Variant: 11 Control flow: if(globalReturnsTrue()) ...
-
CWE: 377 Insecure Temporary File Sinks: w32GetTempFileName GoodSink: Create and open a temporary file, created with GetTempFileNameW(), more securely BadSink : Create and open a temporary file, created with GetTempFileNameW(), insecurely Flow Variant: 10 Control flow: if(globalTrue) and if(gl...
-
CWE: 377 Insecure Temporary File Sinks: w32GetTempFileName GoodSink: Create and open a temporary file, created with GetTempFileNameW(), more securely BadSink : Create and open a temporary file, created with GetTempFileNameW(), insecurely Flow Variant: 09 Control flow: if(GLOBAL_CONST_TRUE) an...
-
CWE: 377 Insecure Temporary File Sinks: w32GetTempFileName GoodSink: Create and open a temporary file, created with GetTempFileNameW(), more securely BadSink : Create and open a temporary file, created with GetTempFileNameW(), insecurely Flow Variant: 08 Control flow: if(staticReturnsTrue()) ...
-
CWE: 377 Insecure Temporary File Sinks: w32GetTempFileName GoodSink: Create and open a temporary file, created with GetTempFileNameW(), more securely BadSink : Create and open a temporary file, created with GetTempFileNameW(), insecurely Flow Variant: 07 Control flow: if(staticFive==5) and if...
-
CWE: 377 Insecure Temporary File Sinks: w32GetTempFileName GoodSink: Create and open a temporary file, created with GetTempFileNameW(), more securely BadSink : Create and open a temporary file, created with GetTempFileNameW(), insecurely Flow Variant: 06 Control flow: if(STATIC_CONST_FIVE==5)...
-
CWE: 377 Insecure Temporary File Sinks: w32GetTempFileName GoodSink: Create and open a temporary file, created with GetTempFileNameW(), more securely BadSink : Create and open a temporary file, created with GetTempFileNameW(), insecurely Flow Variant: 05 Control flow: if(staticTrue) and if(st...
-
CWE: 377 Insecure Temporary File Sinks: w32GetTempFileName GoodSink: Create and open a temporary file, created with GetTempFileNameW(), more securely BadSink : Create and open a temporary file, created with GetTempFileNameW(), insecurely Flow Variant: 04 Control flow: if(STATIC_CONST_TRUE) an...
-
CWE: 377 Insecure Temporary File Sinks: w32GetTempFileName GoodSink: Create and open a temporary file, created with GetTempFileNameW(), more securely BadSink : Create and open a temporary file, created with GetTempFileNameW(), insecurely Flow Variant: 03 Control flow: if(5==5) and if(5!=5)
-
CWE: 377 Insecure Temporary File Sinks: w32GetTempFileName GoodSink: Create and open a temporary file, created with GetTempFileNameW(), more securely BadSink : Create and open a temporary file, created with GetTempFileNameW(), insecurely Flow Variant: 02 Control flow: if(1) and if(0)
-
CWE: 377 Insecure Temporary File Sinks: w32GetTempFileName GoodSink: Create and open a temporary file, created with GetTempFileNameW(), more securely BadSink : Create and open a temporary file, created with GetTempFileNameW(), insecurely Flow Variant: 01 Baseline
-
CWE: 377 Insecure Temporary File Sinks: w32GetTempFileName GoodSink: Create and open a temporary file, created with GetTempFileNameA(), more securely BadSink : Create and open a temporary file, created with GetTempFileNameA(), insecurely Flow Variant: 18 Control flow: goto statements
-
CWE: 377 Insecure Temporary File Sinks: w32GetTempFileName GoodSink: Create and open a temporary file, created with GetTempFileNameA(), more securely BadSink : Create and open a temporary file, created with GetTempFileNameA(), insecurely Flow Variant: 17 Control flow: for loops
-
CWE: 377 Insecure Temporary File Sinks: w32GetTempFileName GoodSink: Create and open a temporary file, created with GetTempFileNameA(), more securely BadSink : Create and open a temporary file, created with GetTempFileNameA(), insecurely Flow Variant: 16 Control flow: while(1)