Hello,

 

In the Chessbase database there is a game (Nataf-Schlosser) with a comment
of around 30kbyte in one line. My scid, compiled with VisualStudio crashes
when reading this from a PGN-file, because it tries to write outside of the
heap. The released 4.2.2 Scid does not crash, which means it overwrites
instead some data inside of the heap. But then everything can happen later
on. PGNParser is waiting for someone to make at least its implementation a
bit more robust. Allocating plain fixed length char * buffer and using its
own read methods, which do not return any status, are the optimal
environment for problems like this.

I am not willing to do this as I am anyway working at an replacement to all
file access methods including MFile and PGNParser. My idea is to implement
the current interface of MFile based on a block based implementation like
GFile. Then buffers for reading input are not necessary anymore, because it
is handled then in the background.

 

                Regards,

 

                Gerd Lorscheid

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Scid-users mailing list
Scid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scid-users

Reply via email to