capstone-engine/capstone

Replace `malloc` with `calloc` everywhere

Rot127 opened this issue · 0 comments

Feature

  • New architecture module
  • Support for processor extension
  • Add more instruction details (elaborated below)
  • Binding support for: language
  • Other (elaborated below)

Describe the feature you'd like

Especially auto-sync modules require to have their structs initialized to 0. The performance reduction can be neglected IMHO.

And we dodge potential and hard to find bugs (as happened in the past).

Currently there is a lot of memset everywhere, which we could save as well.

Additional context
None