Use calloc instead of malloc when allocating data structures while importing a dump in hprop. Fixes a crash in hprop when reading MIT dump files due unintialized memory in the Salt data structure, plus will be more robust against any future changes to the data model. Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
3.0 KiB
3.0 KiB