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 22:49:49 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0

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

Rik wrote: "First, the changeset I pushed is only about checking for an
overflow in a dimension or overall number of elements."

That assumes the size specification will be used in an NR*NC fashion.  If this
size specification comes from, for example,


octave> xinf = fread (id, [8, Inf], "8*single", 2*4);


i.e., the [8,Inf] is treated internally as a size array, will that throw an
error?

    _______________________________________________________

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]