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

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

Test Case IDAccepted1979
Bad / Good / MixedBadBad test case
Author
Associations
Good pair: 1980  
Test suite: 57  59  
Added byRomain Gaucher
LanguageC++
Type of test caseSource Code
Input string
Expected Output2001
Instructions
Submission date2007-07-13
DescriptionBy using a wrong pointer type, the program will output a non-sense value due to the pointer scaling.
File(s)
Flaw

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

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