Skip to content

Commit bc22b9b

Browse files
authored
Update test.cpp
1 parent c6083a6 commit bc22b9b

File tree

1 file changed

+4
-4
lines changed
  • cpp/ql/test/experimental/query-tests/Security/CWE/CWE-190/DangerousUseOfTransformationAfterOperation

1 file changed

+4
-4
lines changed

cpp/ql/test/experimental/query-tests/Security/CWE/CWE-190/DangerousUseOfTransformationAfterOperation/test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
void testCall (unsigned long);
2-
void functionWork() {
2+
void functionWork(char aA[10],unsigned int aUI) {
3+
34
unsigned long aL;
4-
char aA[10],*aP;
5-
unsigned char aUC;
5+
char *aP;
66
int aI;
7-
unsigned int aUI;
7+
88
aI = (aUI*8)/10; // GOOD
99
aI = aUI*8; // BAD
1010
aP = aA+aI;

0 commit comments

Comments
 (0)