← Back to context

Comment by mistrial9

10 months ago

using UNION was always considered sketchy IMHO. This is trivia for security exploiters?

No. This is how sum types are implemented.

And from a runtime perspective it’s going to be a struct with perhaps more padding. You’ll need more details about your specific threat model to explain why that’s bad.