summaryrefslogtreecommitdiffstats
path: root/contrib/elftoolchain/libelf/elf_update.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/elftoolchain/libelf/elf_update.c')
-rw-r--r--contrib/elftoolchain/libelf/elf_update.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/elftoolchain/libelf/elf_update.c b/contrib/elftoolchain/libelf/elf_update.c
index 6cc109d..0c44712 100644
--- a/contrib/elftoolchain/libelf/elf_update.c
+++ b/contrib/elftoolchain/libelf/elf_update.c
@@ -808,6 +808,7 @@ _libelf_write_scn(Elf *e, unsigned char *nf, struct _Elf_Extent *ex)
assert(d->d_buf != NULL);
assert(d->d_version == e->e_version);
+ assert(msz != 0);
assert(d->d_size % msz == 0);
nobjects = (size_t) (d->d_size / msz);
OpenPOWER on IntegriCloud