n4r1b / ferrisetw

Basically a KrabsETW rip-off written in Rust
Other
65 stars 24 forks source link

Invalid widestring pointer #60

Closed 0xlane closed 1 year ago

0xlane commented 2 years ago

hello, I have used the code of this commit(#42). An PropertyError("Invalid widestring pointer") error occurred when I used the following code:

TryParse::<String>::try_parse(&parser, "appname")

This problem will not occur if i switch to the previous commits.

daladim commented 2 years ago

Hello, I had identified this bug as well.

This happens because I thought every unicode strings would be aligned on 16-bits boundaries, but this assumption turned out to be wrong. And thus, an optimization I made is incorrect. I'll correct this in the days to come, stay tuned 😄