Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3f51f90

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

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

‎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)

AltStyle によって変換されたページ (->オリジナル) /