Skip to content

Commit

Permalink
trick CIFuzz into building all the fuzz targets
Browse files Browse the repository at this point in the history
  • Loading branch information
evverx committed Apr 29, 2020
1 parent ef52ca6 commit a9418b9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
dry-run: false
- name: Upload Crash
uses: actions/upload-artifact@v1
if: steps.build.outcome == 'success' && steps.run.outcome != 'success'
if: failure() && steps.build.outcome == 'success' && steps.run.outcome != 'success'
with:
name: artifacts
path: ./out/artifacts
10 changes: 5 additions & 5 deletions src/basic/alloc-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
#include "memory-util.h"

void* memdup(const void *p, size_t l) {
void *ret;
void *r;

assert(l == 0 || p);

ret = malloc(l ?: 1);
if (!ret)
r = malloc(l ?: 1);
if (!r)
return NULL;

memcpy(ret, p, l);
return ret;
memcpy(r, p, l);
return r;
}

void* memdup_suffix0(const void *p, size_t l) {
Expand Down
6 changes: 1 addition & 5 deletions src/test/test-time-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,11 +487,7 @@ int main(int argc, char *argv[]) {
test_setup_logging(LOG_INFO);

log_info("realtime=" USEC_FMT "\n"
"monotonic=" USEC_FMT "\n"
"boottime=" USEC_FMT "\n",
now(CLOCK_REALTIME),
now(CLOCK_MONOTONIC),
now(clock_boottime_or_monotonic()));
now(CLOCK_REALTIME));

test_parse_sec();
test_parse_sec_fix_0();
Expand Down

0 comments on commit a9418b9

Please sign in to comment.