[Top][All Lists]

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

Re: Invalid memory usage in GLPK

From: Heinrich Schuchardt
Subject: Re: Invalid memory usage in GLPK
Date: Mon, 3 Aug 2020 21:33:19 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0

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.

Best regards


reply via email to

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