Skip to content

Commit 3f51f90

Browse files
committed
refactor: cleanup cpp tutorial projects
1 parent 080e65e commit 3f51f90

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

tutorials/c_cpp/bazel/src/explore_me.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#include <cstring>
44
using namespace std;
55

6-
// just a function with multiple paths that can be discoverd by a fuzzer
76
void exploreMe(int a, int b, string c) {
87
if (a >= 20000) {
98
if (b >= 2000000) {

tutorials/c_cpp/cmake/src/explore_me.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
33
#include <cstring>
44
using namespace std;
55

6-
// just a function with multiple paths that can be discoverd by a fuzzer
76
void exploreMe(int a, int b, string c) {
87
if (a >= 20000) {
98
if (b >= 2000000) {
109
if (b - a < 100000) {
1110
if (c == "FUZZING") {
12-
// Trigger a heap buffer overflow
1311
char *s = (char *)malloc(8);
1412
strcpy(s, "too long");
1513
printf("%s\n", s);

0 commit comments

Comments
 (0)