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
Would love to have some ideas on the best way to map vtable addresses back to the original Rust types.
Say we have a Box<dyn MyTrait>, the goal is to lookup the original type info from the vtable address, and then use the type info to decode the data at the data address.
We can already do this for normal boxed types, because we trace allocations. Since there is no allocation for Zero Sized Types, this trick does not work.
The text was updated successfully, but these errors were encountered:
tyt2y3
changed the title
Would love to have some ideas on the best way to map vtable addresses back to the original Rust type.
Mapping vtable addresses to Rust type
Jan 8, 2024
Would love to have some ideas on the best way to map vtable addresses back to the original Rust types.
Say we have a
Box<dyn MyTrait>
, the goal is to lookup the original type info from the vtable address, and then use the type info to decode the data at the data address.We can already do this for normal boxed types, because we trace allocations. Since there is no allocation for Zero Sized Types, this trick does not work.
Originally posted by @tyt2y3 in #34
The text was updated successfully, but these errors were encountered: