Closed rlabrecque closed 5 years ago
I'll fix up the tests if it's lookin like you'll merge this!
Interesting and gross! Yes, please fix the test and I'll merge :-)
I was pleasantly surprised to see the Variant code prototyping my initial handcrafted fix.
If there ever ends up being another use case for needing to know the size of a Variant, we should probably pull that out into a helper function.
I'll try to get to the tests this weekend, thanks for merging in everything else this week!
PR Updated, I changed it quite a bit on top of the Rust 2018 commit. I pulled the variant size logic out into a function, saved us from exposing tpi::constants
to symbol::
and just made things easier to understand.
Merged, thanks!
As seen here: https://github.com/Microsoft/microsoft-pdb/blob/master/cvdump/dumpsym7.cpp#L3797
Without this change the name was missing or mangled on some constants as the data_length was pointing into the value.