View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004725VTK(No Category)public2007-03-29 21:382014-09-09 00:04
ReporterCory Quammen 
Assigned ToCory Quammen 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0004725: vtkXMLShader.cxx places string terminator in incorrect position when reading shaders from files
DescriptionUnder 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.
TagsNo tags attached.
Project
Type
Attached Filespatch file icon vtkXMLShader.cxx.patch [^] (1,008 bytes) 1969-12-31 19:00 [Show Content]

 Relationships

  Notes
(0028689)
Cory Quammen (developer)
2012-06-11 23:59

A patch for this bug has been posted on gerrit:

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

 Issue History
Date Modified Username Field Change
2008-02-06 10:05 Jeff Baumes Assigned To Will Schroeder => Utkarsh Ayachit
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2012-06-11 23:59 Cory Quammen Note Added: 0028689
2014-09-09 00:04 Cory Quammen Assigned To Utkarsh Ayachit => Cory Quammen
2014-09-09 00:04 Cory Quammen Status expired => backlog
2014-09-09 00:04 Cory Quammen Resolution open => reopened
2014-09-09 00:04 Cory Quammen Status backlog => closed
2014-09-09 00:04 Cory Quammen Resolution reopened => fixed


Copyright © 2000 - 2018 MantisBT Team