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

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

[Octave-bug-tracker] [bug #60450] load fails to read MAT file


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #60450] load fails to read MAT file
Date: Fri, 23 Apr 2021 22:12:22 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Follow-up Comment #1, bug #60450 (project octave):

I'm also attaching a tar.gz file that includes the source for a  standalone
program and two data files (the compressed data from the original problem MAT
file and the expected uncompressed data).  The program reads both files,
uncompresses the compressed data into a separate buffer, and then compares it
with the expected uncompressed data.  For me, the behavior is the same as for
Octave, so solving the problem with the simpler program will probably allow us
to easily fix it in Octave as well.

Here is what I see:


$ tar zxf uncompress2-test.tar.gz 
$ cd uncompress2-test
$ g++ -O2 uncompress2-test.cc -lz
$ ./a.out
status = -5 NOT OK!
output buffer size = 3506176 (buffer is sized exactly as needed)
result size = 3506176 OK
uncompressed data compares EQUAL to original data


The status == -5 is Z_BUF_ERROR, which indicates that the output buffer is too
small.  But it is not, and even if I enlarge it, there is still an error,
though I believe is it Z_DATA_ERROR, not Z_BUF_ERROR.

If someone would like to report this problem upstream, you may use this
program for the report.  But I don't have much hope for a resolution as
development on zlib appears to be stalled.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60450>

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




reply via email to

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