-
Notifications
You must be signed in to change notification settings - Fork 541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
buffer overflow when there's a string literal at end of input, but without terminating null char #29
Comments
dneto0
added a commit
to dneto0/SPIRV-Tools
that referenced
this issue
Nov 25, 2015
Add unit tests for all diagnostics issued by spvBinaryParse. Handle image format operands. Detect exhaustion of input when parsing an operand, to avoid buffer overruns on some invalid input cases. Fix the description strings for some operand types. Make the diagnostic messages for those operand types consistent between the assembler and binary parser. Fixes KhronosGroup#29
dneto0
added a commit
to dneto0/SPIRV-Tools
that referenced
this issue
Nov 26, 2015
Add unit tests for all diagnostics issued by spvBinaryParse. Handle image format operands. Document that the callback function pointers can be null, in which case they are ignored. Detect exhaustion of input when parsing an operand, to avoid buffer overruns on some invalid input cases. Fix the description strings for some operand types. Make the diagnostic messages for those operand types consistent between the assembler and binary parser. Fixes KhronosGroup#29
dneto0
added a commit
to dneto0/SPIRV-Tools
that referenced
this issue
Nov 27, 2015
Add unit tests for all diagnostics issued by spvBinaryParse. Handle image format operands in the binary parser and the disassembler. Document that the callback function pointers can be null, in which case they are ignored. Detect exhaustion of input when parsing an operand, to avoid buffer overruns on some invalid input cases. Fix the description strings for some operand types. Make the diagnostic messages for those operand types consistent between the assembler and binary parser. Fixes KhronosGroup#29
dneto0
added a commit
to dneto0/SPIRV-Tools
that referenced
this issue
Nov 27, 2015
Add unit tests for all diagnostics issued by spvBinaryParse. Handle image format operands in the binary parser and the disassembler. Document that the callback function pointers can be null, in which case they are ignored. Detect exhaustion of input when parsing an operand, to avoid buffer overruns on some invalid input cases. Fix the description strings for some operand types. Make the diagnostic messages for those operand types consistent between the assembler and binary parser. Fixes KhronosGroup#29
dneto0
added a commit
to dneto0/SPIRV-Tools
that referenced
this issue
Nov 27, 2015
Add unit tests for all diagnostics issued by spvBinaryParse. Handle image format operands in the binary parser and the disassembler. Document that the callback function pointers can be null, in which case they are ignored. Detect exhaustion of input when parsing an operand, to avoid buffer overruns on some invalid input cases. Fix the description strings for some operand types. Make the diagnostic messages for those operand types consistent between the assembler and binary parser. Fixes KhronosGroup#29
dneto0
added a commit
to dneto0/SPIRV-Tools
that referenced
this issue
Nov 27, 2015
Add unit tests for all diagnostics issued by spvBinaryParse. Handle image format operands in the binary parser and the disassembler. Document that the callback function pointers can be null, in which case they are ignored. Detect exhaustion of input when parsing an operand, to avoid buffer overruns on some invalid input cases. Fix the description strings for some operand types. Make the diagnostic messages for those operand types consistent between the assembler and binary parser. Fixes KhronosGroup#29
dneto0
added a commit
that referenced
this issue
Nov 30, 2015
Add unit tests for all diagnostics issued by spvBinaryParse. Handle image format operands in the binary parser and the disassembler. Document that the callback function pointers can be null, in which case they are ignored. Detect exhaustion of input when parsing an operand, to avoid buffer overruns on some invalid input cases. Fix the description strings for some operand types. Make the diagnostic messages for those operand types consistent between the assembler and binary parser. Fixes #29
dgkoch
pushed a commit
to dgkoch/SPIRV-Tools
that referenced
this issue
Nov 21, 2018
…sion Update SPIR-V core grammar revision number
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also, there's an assert failure if the last instruction has a word count that extends beyond the input.
I have fixes for both queued up, buliding on #28
The text was updated successfully, but these errors were encountered: