Skip to content

Commit 4050ad8

Browse files
committed
removed the functions to test in the advanced explore me files
1 parent 8ceff56 commit 4050ad8

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

src/advanced_examples/explore_me.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,6 @@ void ExploreStructuredInputChecks(InputStruct inputStruct){
1818
return;
1919
}
2020

21-
void ExploreCompressedInputChecks(const uint8_t *Data, size_t Size){
22-
uint8_t Uncompressed[100];
23-
size_t UncompressedLen = sizeof(Uncompressed);
24-
// Check if uncompression was successful
25-
if (Z_OK != uncompress(Uncompressed, &UncompressedLen, Data, Size)) {
26-
// Uncompression was not successfull
27-
// Just return and throw input away
28-
return;
29-
}
30-
if (UncompressedLen < 2) return;
31-
if (Uncompressed[0] == 'C' && Uncompressed[1] == 'I') {
32-
trigger_double_free();
33-
}
34-
}
35-
3621
void ExploreSlowInputsChecks(int a, int b){
3722
if (a == 48664131) {
3823
for (int i = 0; i < b; i++) {

src/advanced_examples/explore_me.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,4 @@ struct InputStruct {
1616
};
1717

1818
void ExploreStructuredInputChecks(InputStruct inputStruct);
19-
void ExploreCompressedInputChecks(const uint8_t *Data, size_t Size);
2019
void ExploreSlowInputsChecks(int a, int b);

0 commit comments

Comments
 (0)