[Libguestfs] hivex.c: unchecked calloc

Jim Meyering jim at meyering.net
Tue Nov 3 17:44:27 UTC 2009


Hi Rich,

There's an unchecked calloc in hivex.c's hive_open:

  h->bitmap = calloc (1 + h->size / 32, 1);
  ...
This subsequent deref could cause a segfault:

        BITMAP_SET (h->bitmap, blkoff);




More information about the Libguestfs mailing list