-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[debugger] Access invalid memory address using PointerValue Command. #18537
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
Conversation
…interValue. The IDE can send an invalid address and it was crashing mono. Fixes mono#18191
lambdageek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Interesting approach
- How often does the debugger send these pointer commands? Does it only happen for user expression evaluation, or also for every local variable in a frame or other things like that that can happen on every step?
- Usual convention is
exit(0)for success, and 1 for failure
The debugger send these pointer commands on every step if there is a pointer variable like Int32*, I assumed that this is not VERY used, do you disagree? |
|
This is also related to #15612 |
Co-Authored-By: Aleksey Kliger (λgeek) <akliger@gmail.com>
|
@monojenkins build failed |
1 similar comment
|
@monojenkins build failed |
|
@monojenkins build Windows x64 FullAOT+LLVM |
|
@monojenkins build OS X x64 iOS SDK |
|
@monojenkins build Linux AArch64 |
|
Azure Pipelines successfully started running 1 pipeline(s). |
…ono#18537) * Validate the address that came from IDE using PointerValue. The IDE can send an invalid address and it was crashing mono. Fixes mono#18191 Fixes mono#15612 Co-authored-by: Aleksey Kliger (λgeek) <akliger@gmail.com>
…ono#18537) * Validate the address that came from IDE using PointerValue. The IDE can send an invalid address and it was crashing mono. Fixes mono#18191 Fixes mono#15612 Co-authored-by: Aleksey Kliger (λgeek) <akliger@gmail.com> Wrap create_file_to_check_memory_address in #ifndef _MSC_VER check as it's only used in that scope.
…ono#18537) * Validate the address that came from IDE using PointerValue. The IDE can send an invalid address and it was crashing mono. Fixes mono#18191 Fixes mono#15612 Co-authored-by: Aleksey Kliger (λgeek) <akliger@gmail.com> Wrap create_file_to_check_memory_address in #ifndef _MSC_VER check as it's only used in that scope.
…ono#18537) * Validate the address that came from IDE using PointerValue. The IDE can send an invalid address and it was crashing mono. Fixes mono#18191 Fixes mono#15612 Co-authored-by: Aleksey Kliger (λgeek) <akliger@gmail.com> Wrap create_file_to_check_memory_address in #ifndef _MSC_VER check as it's only used in that scope.
Creating a fork process to access address that came from IDE using PointerValue. The IDE can send an invalid address and it was crashing mono.
Fixes #18191