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

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

[Octave-bug-tracker] [bug #57632] 5.1.90 crash on cygwin


From: Kai Torben Ohlhus
Subject: [Octave-bug-tracker] [bug #57632] 5.1.90 crash on cygwin
Date: Tue, 21 Jan 2020 01:57:10 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36

Follow-up Comment #9, bug #57632 (project octave):

comment #8 is great news.

Alright, then I think we have the guilty one.  Reduced version of comment #5
program 2:


f = tempname ();
fid = fopen (f, "w");
fprintf (fid, "1\n2\n3\n4\n5\n6");
fseek (fid, 0, "bof");
fclose (fid);
unlink (f);


and


f = tempname ();
fid = fopen (f, "w");
fseek (fid, 0, "bof");
fclose (fid);
unlink (f);


I think any file position manipulation is a serious problem.  This happens
also when calling textscan

https://hg.savannah.gnu.org/hgweb/octave/file/6628a284d56d/libinterp/corefcn/oct-stream.cc#l2543

Are there any known bugs in cygwin about using fseek, seekg, seekp?

https://en.cppreference.com/w/c/io/fseek


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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