-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Labels
Bug
A crash, misbehaviour, or other problem
Comments
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! |
Fixed in 7336220f, due in v0.19. Possibly also fixes #4, we'll see! |
baldurk
added a commit
that referenced
this issue
Feb 16, 2016
* Not supporting images with arrays or mips for now as that becomes more complicated. In theory a page table each, but then need to handle mip tail and stuff.
Closed
Closed
Closed
CamilliaX
pushed a commit
to CamilliaX/renderdoc
that referenced
this issue
Aug 14, 2023
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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!
The text was updated successfully, but these errors were encountered: