grub-lakitu: FROMGIT: calloc: Make sure we always have an overflow-checking calloc() available

This tries to make sure that everywhere in this source tree, we always have
an appropriate version of calloc() (i.e. grub_calloc(), xcalloc(), etc.)
available, and that they all safely check for overflow and return NULL when
it would occur.

Signed-off-by: Peter Jones <pjones@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Upstream-commit-id: 79e51ab7a9a
(cherry picked from commit edacadd3894bf78ba4070a23812de65883207098
 https://github.com/rhboot/grub2 fedora-31)
Signed-off-by: Robert Kolchmeyer <rkolchmeyer@google.com>

BUG=b/162782466
TEST=shielded_vm_test

Change-Id: I2ec7f1431b9684765c2b31d059033eb9f0f6b415
7 files changed
tree: 95d842eded171d86f60079e6bc81ea5f91098d4c
  1. grub-lakitu/
  2. OWNERS
  3. README