octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #54405] octave_idx_type index integer overflow


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #54405] octave_idx_type index integer overflow math check doesn't work correctly
Date: Tue, 31 Jul 2018 21:09:55 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0

Follow-up Comment #17, bug #54405 (project octave):

@Rik, @DAS, I think the BIST you are looking at is the one that is failing in
the BISTs I added in the changeset.  I think the issue is that get_size() is
in a try-catch block and produces:


!!!!! known bug: https://octave.org/testfailure/?54405
expected error <negative>
but got <value on right hand side of assignment is undefined>
warning: test: file /home/sebald/matlab/octave/octave/test/io.tst leaked
global variables: __assert_printf__
PASSES 158 out of 159 tests (1 known bug)


To illustrate:


octave:8> x = fread (fid, [-10, -10], 'single');
error: fread: negative value invalid as size specification
error: value on right hand side of assignment is undefined



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?54405>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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