SAMATE Logo NIST Logo The SAMATE Project Department of Homeland Security
Downloads:  Download this Test Case #149091

Back to the previous page... Back to the previous page

Test Case IDCandidate149091
Bad / Good / MixedBadBad test case
AuthorCLASP/SecureSoftware, Paul E. Black, Alexander Hoole, Aurelien Delaitre
Good pair: 149092  
Replacing: 1782  
Test suite: 100  
Added byCharles Oliveira
Type of test caseSource Code
Input string
Expected Output
Instructionsgcc -Wall -g -O0 -std=gnu99 -o Unintentional_pointer_scaling-bad Unintentional_pointer_scaling-bad.c
Submission date2015-03-23
DescriptionAccidentally refer to the wrong memory address due to the semantics of when math operations are implicitly scaled.

There are no comments
Have any comments on this test case? Please, .

File Contains:
CWE-468: Incorrect Pointer Scaling on line(s): 18