You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2024/02/22 23:00:05 UTC

[Bug 68661] New: Memory leak in load_install_path() in jlibtool.c

https://bz.apache.org/bugzilla/show_bug.cgi?id=68661

            Bug ID: 68661
           Summary: Memory leak in load_install_path() in jlibtool.c
           Product: APR
           Version: HEAD
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: APR
          Assignee: bugs@apr.apache.org
          Reporter: razzrohith@gmail.com
  Target Milestone: ---

There is a memory leak in the function load_install_path() in
apr-1.7.4-win32-src/apr-1.7.4/build/jlibtool.c when install path is invalid. 

Following is the code snippet:

char * load_install_path(const char *arg)
{
    FILE *f;
    char *path;

    path = malloc(PATH_MAX);

    f = fopen(arg,"r");
    if (f == NULL) {
        return NULL; // memory leak here
    }



It affects APR versions <= 1.7.4

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org