Compare c4de7d8 ... +0 ... 957c17c

Coverage Reach
hf.c

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 1 of 4 files from the diff.
Other files ignored by Codecov
tst/main.c has changed.
include/hf.h has changed.

@@ -296,18 +296,22 @@
Loading
296 296
        *size_p = (size_t)file_size;
297 297
    }
298 298
299 -
    buf_p = malloc((size_t)file_size);
299 +
    if (file_size > 0) {
300 +
        buf_p = malloc((size_t)file_size);
300 301
301 -
    if (buf_p == NULL) {
302 -
        goto out1;
303 -
    }
302 +
        if (buf_p == NULL) {
303 +
            goto out1;
304 +
        }
304 305
305 -
    if (fseek(file_p, 0, SEEK_SET) != 0) {
306 -
        goto out2;
307 -
    }
306 +
        if (fseek(file_p, 0, SEEK_SET) != 0) {
307 +
            goto out2;
308 +
        }
308 309
309 -
    if (fread(buf_p, (size_t)file_size, 1, file_p) != 1) {
310 -
        goto out2;
310 +
        if (fread(buf_p, (size_t)file_size, 1, file_p) != 1) {
311 +
            goto out2;
312 +
        }
313 +
    } else {
314 +
        buf_p = malloc(1);
311 315
    }
312 316
313 317
    fclose(file_p);

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
src/hf.c 0.39% 79.09%
Project Totals (1 files) 79.09%
Loading