summaryrefslogtreecommitdiff
path: root/libelf/lib/32.fsize.c
diff options
context:
space:
mode:
Diffstat (limited to 'libelf/lib/32.fsize.c')
-rwxr-xr-xlibelf/lib/32.fsize.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libelf/lib/32.fsize.c b/libelf/lib/32.fsize.c
index 25bb4b49b..2845dd212 100755
--- a/libelf/lib/32.fsize.c
+++ b/libelf/lib/32.fsize.c
@@ -93,9 +93,11 @@ _elf_fsize(unsigned cls, Elf_Type type, unsigned ver)
else if (!valid_type(type)) {
seterr(ERROR_UNKNOWN_TYPE);
}
+/*@-boundsread@*/
else if (!(n = _fsize(cls, ver, type))) {
seterr(ERROR_UNKNOWN_TYPE);
}
+/*@=boundsread@*/
return n;
}
@@ -147,9 +149,11 @@ gelf_msize(Elf *elf, Elf_Type type, size_t count, unsigned ver) {
else if (!valid_type(type)) {
seterr(ERROR_UNKNOWN_TYPE);
}
+/*@-boundsread@*/
else if (!(n = _msize(elf->e_class, ver, type))) {
seterr(ERROR_UNKNOWN_TYPE);
}
+/*@=boundsread@*/
else {
return count * n;
}