Mercurial > octave
view .dir-locals.el @ 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 | df203b20cfc6 |
children |
line wrap: on
line source
((nil . ((c-file-style . "gnu") (indent-tabs-mode . nil) (fill-column . 72))) (change-log-mode . ((indent-tabs-mode . t))) (makefile-mode . ((indent-tabs-mode . t))))