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

Crash when using #line directive, or with symbols on the last line of a file #5

Closed
baldurk opened this issue Feb 28, 2014 · 2 comments
Labels
Bug A crash, misbehaviour, or other problem

Comments

@baldurk
Copy link
Owner

baldurk commented Feb 28, 2014

RenderDoc's disassembler doesn't correctly handle the #line directive, and if you end up with line numbers beyond the number of lines in the file (quite easy) it will crash indexing off the end of the file.

Otherwise, the line numbers are still wrong!

@baldurk baldurk added the bug label Feb 28, 2014
@baldurk baldurk added this to the Release v0.19 milestone Feb 28, 2014
@baldurk
Copy link
Owner Author

baldurk commented Mar 1, 2014

Updating the topic - thanks to investigations on #4 I've found an off-by-one error in line number indexing - debug info returns line numbers 1-indexed and I look them up 0-indexed, which causes incorrect hlsl lines embedded in the disassembly as well as a potential lookup off the end of the array.

oops!

@baldurk
Copy link
Owner Author

baldurk commented Mar 1, 2014

Fixed in 7336220f, due in v0.19. Possibly also fixes #4, we'll see!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A crash, misbehaviour, or other problem
Projects
None yet
Development

No branches or pull requests

1 participant