Mercurial > octave
diff COPYING @ 31542:2f08a53e0a23
Fix scanf handling of exceptional values (NA, NaN, Inf) at EOF (bug #63383)
* oct-stream.cc (octave_scan): After skipping whitespace, check stream with
is.good() before proceeding to read a value.
* lo-utils.cc (read_inf_nan_na): Use is.peek() after successfully reading Inf
or NaN to possibly set EOF bit.
* lo-utils.cc (read_fp_value): Add extra test that value is not NA or NaN
before changing it to -value when negative '-' character present.
* io.tst: Mark fixed BIST tests with '*' regression marker.
Add BIST tests for exceptional '+' character and for +/-NA, +/-NaN.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 25 Nov 2022 08:30:30 -0800 |
parents | 2e94172bc1c1 |
children |