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

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

[Octave-bug-tracker] [bug #40490] io 1.2.4: odsread crashes if filename


From: Sébastien Villemot
Subject: [Octave-bug-tracker] [bug #40490] io 1.2.4: odsread crashes if filename is short
Date: Wed, 06 Nov 2013 14:21:59 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130917 Firefox/17.0 Iceweasel/17.0.9

URL:
  <http://savannah.gnu.org/bugs/?40490>

                 Summary: io 1.2.4: odsread crashes if filename is short
                 Project: GNU Octave
            Submitted by: svillemot
            Submitted on: mer. 06 nov. 2013 14:21:59 GMT
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Crash
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: other
        Operating System: GNU/Linux

    _______________________________________________________

Details:

In io 1.2.4, if one runs odsread on a short filename (e.g. on "test.ods"),
then odsopen.m crashes at the following line (244):


  chk5 = strcmpi (filename(end-8:end), ".gnumeric");    ## Zipped XML /
gnumeric


This test assumes that filename is at least of length 9. It should be changed
to something like:


  chk5 = length(filename) > 8 && strcmpi (filename(end-8:end), ".gnumeric");  
 ## Zipped XML / gnumeric






    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/




reply via email to

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