bug-glpk
[Top][All Lists]
Advanced

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

Re: [Bug-glpk] [Fwd: segfault reading a compressed mps file in 4.52]


From: Carlo Baldassi
Subject: Re: [Bug-glpk] [Fwd: segfault reading a compressed mps file in 4.52]
Date: Thu, 28 Nov 2013 10:59:55 +0100

I think the relevant changes are actually those which involve reading compressed files, glpenv07.{c,h}, which however are not trivial to understand at a glance (and I don't have the time to investigate, unfortunately). See also the valgrind trace in my other reply.


On Thu, Nov 28, 2013 at 1:20 AM, Raniere Silva <address@hidden> wrote:
I was trying to debug it but the only change between 4.48 and 4.52 related to
the reading of the file that I found was

    diff --git a/src/glpmps.c b/src/glpmps.c
    index 390822a..2ee5559 100644
    --- a/src/glpmps.c
    +++ b/src/glpmps.c
    @@ -842,6 +842,12 @@ blnk: {  /* new BOUNDS vector */
           else if (strcmp(type, "LI") == 0)
           {  glp_set_col_kind(csa->P, j, GLP_IV);
              lb = ceil(bnd);
    +#if 1 /* 16/VII-2013 */
    +         /* if column upper bound has not been explicitly specified,
    +            take it as +inf */
    +         if (!(flag[j] & 0x10))
    +            ub = +DBL_MAX;
    +#endif
           }
           else if (strcmp(type, "UI") == 0)
           {  glp_set_col_kind(csa->P, j, GLP_IV)

I just didn't understanding this change.

Raniere


reply via email to

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