forked from trailofbits/manticore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from trailofbits/master
Make CodeCov wait for reports from all CI jobs (trailofbits#1661)
- Loading branch information
Showing
57 changed files
with
1,286 additions
and
824 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
comment: false | ||
|
||
codecov: | ||
notify: | ||
# We have 8 test steps that produce coverage data. | ||
# If we add or remove any, we need to change this number. | ||
after_n_builds: 8 | ||
wait_for_ci: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ basic | |
crackme | ||
crackme.c | ||
fclose | ||
fileio | ||
helloworld | ||
ibranch | ||
indexhell | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ EXAMPLES= \ | |
basic \ | ||
crackme \ | ||
fclose \ | ||
fileio \ | ||
helloworld \ | ||
ibranch \ | ||
indexhell \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// This example demonstrates reading & writing from files. | ||
|
||
#include <errno.h> | ||
#include <stdio.h> | ||
#include <string.h> | ||
|
||
int main(int argc, const char **argv) { | ||
if (argc != 2) { | ||
fprintf(stderr, "Usage: %s FILE\n", argv[0]); | ||
return 0; | ||
} | ||
|
||
const char *fname = argv[1]; | ||
FILE *infile = fopen(fname, "r"); | ||
if (!infile) { | ||
fprintf(stderr, "Error opening %s: %s\n", fname, strerror(errno)); | ||
return 2; | ||
} | ||
|
||
char *line; | ||
size_t line_size; | ||
ssize_t nread = getline(&line, &line_size, infile); | ||
if (nread == -1) { | ||
fprintf(stderr, "Error reading from %s: %s\n", fname, strerror(errno)); | ||
return 3; | ||
} | ||
|
||
if (strcmp("my voice is my passport verify me", line) == 0) { | ||
fprintf(stdout, "Welcome!\n"); | ||
return 0; | ||
} else { | ||
fprintf(stdout, "Access denied.\n"); | ||
return 4; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
queries: | ||
- exclude: py/clear-text-logging-sensitive-data | ||
|
||
path_classifiers: | ||
examples: | ||
- examples/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.