Skip to content
Snippets Groups Projects
Commit fb9b02bf authored by Wilhelm Bjoland's avatar Wilhelm Bjoland
Browse files

ny

parent e0af7644
No related branches found
No related tags found
No related merge requests found
Pipeline #140939 passed
stages:
- var
var:
stage: var
image: ubuntu:latest
script:
- echo "starting"
- apt-get update && apt-get install clang -y
- echo "clang installed"
- clang -g -O1 -fsanitize=fuzzer,address fuzz_target.cc halla.c
- ./a.out -max_total_time=10
a.out 0 → 100755
File added
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
char *checkChar(char str[50]) { char *checkChar(char str[50]) {
int i; int i;
char *newstr; char *newstr;
newstr = (char *)calloc(200,1); newstr = (char *) calloc(strlen(str)*4+1,1);
for (i = 0; i < strlen(str); i++) { for (i = 0; i < strlen(str); i++) {
if (str[i] == '&') { if (str[i] == '&') {
const char *ch = "&amp"; const char *ch = "&amp";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment