Mercurial > hg > octave-lyh
diff scripts/optimization/glpk.m @ 8036:854683691d7a
fix invalid memory read in glpk
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Tue, 19 Aug 2008 13:59:30 -0400 |
parents | aeeb646f6538 |
children | eb63fbe60fab |
line wrap: on
line diff
--- a/scripts/optimization/glpk.m +++ b/scripts/optimization/glpk.m @@ -470,7 +470,7 @@ if (nargin > 3) if (isempty (lb)) - lb = zeros (0, nx, 1); + lb = zeros (nx, 1); elseif (! isreal (lb) || all (size (lb) > 1) || length (lb) != nx) error ("LB must be a real valued %d by 1 column vector", nx); return;