Skip to content
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

Closed
dneto0 opened this issue Nov 25, 2015 · 0 comments
Assignees

Comments

@dneto0
Copy link
Collaborator

dneto0 commented Nov 25, 2015

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

@dneto0 dneto0 self-assigned this Nov 25, 2015
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 dneto0 closed this as completed in d9ad050 Nov 30, 2015
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant