View Issue Details

IDProjectCategoryView StatusLast Update
0000321fileGeneralpublic2022-03-16 11:59
Reportervmurashev Assigned Tochristos  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Product Version5.41 
Fixed in Version5.42 
Summary0000321: memory double free if to invoke test with unexpected count of arguments
DescriptionPlease take a looks at test/test.c

    if (argc != 3) {
        (void)fprintf(stderr, "Usage: %s TEST-FILE RESULT\n", prog);
        magic_close(ms);
        goto bad;
    }
...
bad:
    free(desired);
    magic_close(ms);
    return e;

You can see that magic_close(ms) is called twice in such case
TagsNo tags attached.

Activities

christos

2022-03-16 11:59

manager   ~0003708

Fixed, thanks!

Issue History

Date Modified Username Field Change
2022-02-27 13:12 vmurashev New Issue
2022-03-16 11:59 christos Assigned To => christos
2022-03-16 11:59 christos Status new => assigned
2022-03-16 11:59 christos Status assigned => resolved
2022-03-16 11:59 christos Resolution open => fixed
2022-03-16 11:59 christos Fixed in Version => 5.42
2022-03-16 11:59 christos Note Added: 0003708