The following commit message should be self-explanatory: commit 224ce694fa8ba7dede0e413b81e5dd52e5e65f15 Author: John Denker <j...@av8n.com> Date: Thu Feb 11 21:13:19 2010 -0700
Problem was: readline writes out-of-bounds, corrupts memory. Problem was: readline seeks on files that don't support seek. Problem was: readline fails to detect seek errors, returns garbage. Problem was: readline wildly inefficient, re-reading same data again and again. Add utility to test for read/write bugs. Replace readline with a version that is more compact, more maintainable, more extensible, more correct, more efficient, and able to read from named FIFOs and other things that don't seek. For details (476 lines worth) see: http://www.av8n.com/fly/fgfs/readline.patch ====================================================== The code in sg_file.cxx appears to run parallel to code in other places such as sg_socket.cxx I wouldn't be surprised if the other places needed fixing, too ... but I haven't looked. ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel