bnagy / gapstone

gapstone is a Go binding for the capstone disassembly library
Other
151 stars 43 forks source link

x86_decomposer: copy prefix/opcode []byte that was pointing to C memory #12

Closed StalkR closed 9 years ago

StalkR commented 9 years ago

fix use after free found in https://github.com/bnagy/gapstone/issues/11

bnagy commented 9 years ago

No sense reflecting and then copying, we'll just make a slice and loop once over the C array