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
Copy file name to clipboardExpand all lines: README.md
+41-1Lines changed: 41 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,47 @@ The code was compiled with GCC 8.4.0 and relevant flags include: _"-Wall -Wextra
11
11
12
12
Results from analysis below, also summarized in c\_testing\_slides.pdf.
13
13
14
-
__Addendum:__ More GCC flags which we could've added (would have detected some additional bugs): _"-Wshadow -Wundef -Og"_
14
+
15
+
### Addendum
16
+
More GCC flags which we could have added (would have detected some additional bugs): _"-Wshadow -Wundef -Og"_,
17
+
additionally, GCC can provide runtime checks with e.g. _"-fsanitize=undefined"_[1] (not sure how this compares to the Valgrind suite).
18
+
19
+
I can also add that Cppcheck looks somewhat useful and found _one_ bug not discovered by any of the other tools. (Cppcheck is FOSS)
20
+
Cppcheck was not evaluated below, so I provide a very brief summary here,
21
+
22
+
```
23
+
Unique bug found:
24
+
[array.c:30]: (warning, inconclusive) Array 'my_apa' is filled incompletely. Did you forget to multiply the size given to 'memcpy()' with 'sizeof(*my_apa)'?
25
+
26
+
Otherwise Cppcheck gave mostly "style" advice, such as
27
+
(style) The scope of the variable 'X' can be reduced
28
+
(style) Variable 'X' is reassigned a value before the old one has been used.
29
+
(style) The scope of the variable 'X' can be reduced
0 commit comments