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

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

[Octave-bug-tracker] [bug #53786] crash with textscan (and special text


From: Hartmut
Subject: [Octave-bug-tracker] [bug #53786] crash with textscan (and special text encoding)
Date: Sun, 29 Apr 2018 14:03:33 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0

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

                 Summary: crash with textscan (and special text encoding)
                 Project: GNU Octave
            Submitted by: hardy
            Submitted on: Sun 29 Apr 2018 06:03:32 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Segfault, Bus Error, etc.
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.3.92
        Operating System: Any

    _______________________________________________________

Details:

Here is a reproducible way to generate a CRASH with Octave 4.3.92 under linux
as well as under Windows:

* Download the appended text file. I just contains an example text with the
three letters abc. The text encoding (generated with Geany) is "UTF 16 BE with
BOM", some other text editor called this "ucs big endian".
* run the following easy code to import this text file with the textscan
function:


filename ='text_ucs-big.csv'
fid=fopen(dateiname);
a_textscan = textscan(fid,'%s');
##fclose(fid);
##a_textscan{1}


This still worked fine with Octave 4.2.1 (i.e. no crash). So this is a
regression.

I don't know if the chosen text encoding is the only one to produce a crash. I
testes around 5 different text encodings (for a different bug report), and
those worked fine.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sun 29 Apr 2018 06:03:32 PM UTC  Name: text_ucs-big.csv  Size: 12B   By:
hardy

<http://savannah.gnu.org/bugs/download.php?file_id=44059>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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