Menu

false positive "double free" using label and _exit()s in "__attribute__((noreturn))" child process

Luke Small
2022-11-16
2022-11-16
  • Luke Small

    Luke Small - 2022-11-16
    ...
    
    free(file_w);
    
        _exit(0);
    
    file_cleanup:
        free(file_w);
        _exit(1);
    }
    

    it's in the "file_d" function/process around line 880 in my pkg_ping github repository: https://github.com/lukensmall/pkg_ping/blob/master/pkg_ping.c

     
  • CHR

    CHR - 2022-11-16

    Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/11391

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.