PP: Fix issue #407; handle empty identifier.
The sequence #define m() int m" creates a token of no length (a string of 0 size). Protect against a string of 0 size as well as the existing protect against a null string.
Showing
- Test/baseResults/cppBad.vert.out 4 additions, 2 deletionsTest/baseResults/cppBad.vert.out
- Test/cppBad.vert 3 additions, 0 deletionsTest/cppBad.vert
- glslang/Include/revision.h 1 addition, 1 deletionglslang/Include/revision.h
- glslang/MachineIndependent/Scan.cpp 3 additions, 1 deletionglslang/MachineIndependent/Scan.cpp
Loading
Please register or sign in to comment