Skip to content

How to get rid of cast with Sleigh #7533

Answered by astrelsky
jobermayr asked this question in Q&A
Discussion options

You must be logged in to vote

Assuming a 32 bit program with an internal size of 4 bytes, the output is correct.

Pointer arithmetic on a void* is undefined behavior. It either needs to be cast to an integer type or to uint8_t * or equivalent.

Just set the type of pvVar1 to byte *

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jobermayr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants