Skip to content

Commit 566fdc3

Browse files
committed
Change names of parameters to memcpy(), as per Geoff.
1 parent 2d5bdc8 commit 566fdc3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cpp/ql/test/query-tests/Likely Bugs/Memory Management/AllocaInLoop/AllocaInLoop1.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ void *__builtin_alloca(int sz);
1515
typedef unsigned long size_t;
1616

1717
int printf(const char *restrict format, ...);
18-
void *memcpy(void *restrict dst, const void *restrict src, size_t len);
18+
void *memcpy(void *restrict s1, const void *restrict s2, size_t n);
1919

2020
// case 1: alloca directly contained in an unbounded loop
2121
void foo(const struct vtype* vec, int count) {

cpp/ql/test/query-tests/Likely Bugs/Memory Management/AllocaInLoop/AllocaInLoop1ms.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ extern int w1, w2;
1212
#endif
1313

1414
int printf(const char *restrict format, ...);
15-
void *memcpy(void *restrict dst, const void *restrict src, size_t len);
15+
void *memcpy(void *restrict s1, const void *restrict s2, size_t n);
1616

1717
// case 1: _alloca directly contained in an unbounded loop
1818
void foo(const struct vtype* vec, int count) {

cpp/ql/test/query-tests/Likely Bugs/Memory Management/AllocaInLoop/AllocaInLoop2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
int printf(const char *restrict format, ...);
33
int sprintf(char *restrict buf, const char *restrict format, ...);
44
typedef unsigned long size_t;
5-
void *memcpy(void *restrict dst, const void *restrict src, size_t len);
5+
void *memcpy(void *restrict s1, const void *restrict s2, size_t n);
66
void *malloc(size_t sz);
77
void free(void *ptr);
88

0 commit comments

Comments
 (0)