MantisBT - VTK
View Issue Details
0004725VTK(No Category)public2007-03-29 21:382014-09-09 00:04
Cory Quammen 
Cory Quammen 
normalmajoralways
closedfixed 
 
 
0004725: vtkXMLShader.cxx places string terminator in incorrect position when reading shaders from files
Under Windows with Microsoft Visual C++, vtkXMLShader places the string terminator '\0' in the incorrect place if CRLF line endings are used. Apparently, the ifstream.read() function converts two-byte CRLF line endings into a single-byte line ending. Thus, in the current code, the string terminator is placed beyond the end of the shader code, effectively leaving undefined character values in the shader code which causes the shader compiler to fail. I have attached a path file for a fix to this problem that places the string terminator in the correct position.
No tags attached.
patch vtkXMLShader.cxx.patch (1,008) 1969-12-31 19:00
https://www.vtk.org/Bug/file/5965/vtkXMLShader.cxx.patch
Issue History
2008-02-06 10:05Jeff BaumesAssigned ToWill Schroeder => Utkarsh Ayachit
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2012-06-11 23:59Cory QuammenNote Added: 0028689
2014-09-09 00:04Cory QuammenAssigned ToUtkarsh Ayachit => Cory Quammen
2014-09-09 00:04Cory QuammenStatusexpired => backlog
2014-09-09 00:04Cory QuammenResolutionopen => reopened
2014-09-09 00:04Cory QuammenStatusbacklog => closed
2014-09-09 00:04Cory QuammenResolutionreopened => fixed

Notes
(0028689)
Cory Quammen   
2012-06-11 23:59   
A patch for this bug has been posted on gerrit:

http://review.source.kitware.com/#/c/6157/ [^]