capstone icon indicating copy to clipboard operation
capstone copied to clipboard

Replace `malloc` with `calloc` everywhere

Open Rot127 opened this issue 1 year ago • 0 comments

Feature

  • [ ] New architecture module
  • [ ] Support for processor extension
  • [ ] Add more instruction details (elaborated below)
  • [ ] Binding support for: language
  • [x] 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

Rot127 avatar Aug 30 '24 14:08 Rot127