You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The increments and offsets of relative pointers to structs is misleading. A variable of type Struct* when incremented by the sizeof Struct will show as incrementing by 1. An increment of a relative pointer of the same type will have its increment value be shown as (byte offset)/sizeof(pointed to struct member).
To Reproduce
Steps to reproduce the behavior:
Have a struct with some members defined.
Create a relative pointer for a struct by right-clicking on a variable and clicking "Adjust pointer offset", set DataType and offset accordingly.
Increments and offsets do not match that of DataType*.
Expected behavior
A clear and concise description of what you expected to happen.
The relative pointer should be treated the same as a pointer to the datatype, matching increments and offsets.
If the byte increment is not a valid multiple of the data type, then the pointer should have a cast done.
Describe the bug
The increments and offsets of relative pointers to structs is misleading. A variable of type Struct* when incremented by the sizeof Struct will show as incrementing by 1. An increment of a relative pointer of the same type will have its increment value be shown as (byte offset)/sizeof(pointed to struct member).
To Reproduce
Steps to reproduce the behavior:
Have a struct with some members defined.
Create a relative pointer for a struct by right-clicking on a variable and clicking "Adjust pointer offset", set DataType and offset accordingly.
Increments and offsets do not match that of DataType*.
Expected behavior
A clear and concise description of what you expected to happen.
The relative pointer should be treated the same as a pointer to the datatype, matching increments and offsets.
If the byte increment is not a valid multiple of the data type, then the pointer should have a cast done.
Screenshots
If applicable, add screenshots to help explain your problem.
Attachments
If applicable, please attach any files that caused problems or log files generated by the software.
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: