bug-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Invalid memory usage in GLPK


From: Andrew Makhorin
Subject: Re: Invalid memory usage in GLPK
Date: Mon, 03 Aug 2020 23:02:51 +0300

On Mon, 2020-08-03 at 21:33 +0200, Heinrich Schuchardt wrote:
> On 8/3/20 8:36 PM, Andrew Makhorin wrote:
> > On Mon, 2020-08-03 at 17:56 +0200, Domingo Alvarez Duarte wrote:
> > > Hello !
> > > 
> > > Changing the file src/env/env.h like this:
> > > 
> > > [...]
> > > 
> > > We get several messages of invalid use of memory like:
> > > 
> > > [...]
> > > 
> > 
> > Some internal routines may call glp_alloc/free directly (i.e. not
> > via
> > macroses), and some routines may use info stored by glp_alloc/free
> > in
> > memory blocks, so it is not a good idea to make changes of such
> > kind.
> > 
> 
> When directly implementing glp_accoc(), glp_realloc(), and glp_free()
> with malloc(n * size), realloc(n * size), free(ptr) valgrind does not
> show the reported issues.

Does valgrind report an error for the original (unmodified) version?



> 
> Best regards
> 
> Heinrich
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]