You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
remediation: Did you reverse the second and third arguments? The second argument should be the value to fill the memory with and the third argument should be the number of bytes to set.
/home/kdudka/git/csa-sdk/memset_noop/tests/memset_noop-tests.c:7: bad_memset: Calling "memset" with size 0: "memset(buf, 4096, 0UL)" does nothing.
3
+
4
+
Error: memset_noop:
5
+
/home/kdudka/git/csa-sdk/memset_noop/tests/memset_noop-tests.c:7: memset_noop: "memset(buf, 4096, 0UL)" does nothing because the "size" argument of memset() evaluates to zero. Did you swap its arguments?
remediation: Did you reverse the second and third arguments? The second argument should be the value to fill the memory with and the third argument should be the number of bytes to set.
/home/kdudka/git/csa-sdk/memset_noop/tests/memset_noop-tests.c:7: bad_memset: Calling "memset" with size 0: "memset(buf, 4096, 0UL)" does nothing.
3
+
/home/kdudka/git/csa-sdk/memset_noop/tests/memset_noop-tests.c:7: remediation: Did you reverse the second and third arguments? The second argument should be the value to fill the memory with and the third argument should be the number of bytes to set.
4
+
5
+
Error: memset_noop:
6
+
/home/kdudka/git/csa-sdk/memset_noop/tests/memset_noop-tests.c:7: memset_noop: "memset(buf, 4096, 0UL)" does nothing because the "size" argument of memset() evaluates to zero. Did you swap its arguments?
0 commit comments