Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
G
glslang
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • glslang
  • Repository

Switch branch/tag
  • glslang
  • Test
  • badChars.frag
Find file
HistoryPermalink
  • John Kessenich's avatar
    Scanning: 1) rationalize end-of-input everywhere, 2) prevent infinite loop at… · c777fc2c
    John Kessenich authored Jul 27, 2015
    Scanning: 1) rationalize end-of-input everywhere, 2) prevent infinite loop at end-of-input, 3) use positive chars.
    
    Fixes issue #25. (char 255 aliased to -1 and missing tests for end of input).
    
    1) All layers of input scanning now share a single EndOfInput value.
    This avoids translation of it across layers of encapsulation.
    
    2) Some places looking for end of line were not stopping on EndOfInput.
    
    3) Use of "char" for the input made char values > 127 be negative numbers.
    This allowed for aliasing of 255 to -1, etc.  This is fixed by using
    unsigned char.
    c777fc2c
badChars.frag 42 Bytes

Download (42 Bytes)

×

Replace badChars.frag

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.