Mercurial > octave
comparison oct-conf-post-public.in.h @ 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 | d5415300e53b |
children | dfa5d9c3ae72 |
comparison
equal
deleted
inserted
replaced
31540:ce5b4a00b022 | 31542:2f08a53e0a23 |
---|