[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libguestfs] hivex.c: unchecked calloc



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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]