summaryrefslogtreecommitdiffhomepage
path: root/src/arbits
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-01-26 00:20:06 +0000
committermidipix <writeonce@midipix.org>2024-01-26 00:20:06 +0000
commite5f056087447ea576e62ac00273e7c7e4cec123d (patch)
tree30556cb777f1dca0601f94b7fdc7965399ffef9d /src/arbits
parent8a08048c6b3d4258b9d6ee206c22eb48b3d304fe (diff)
downloadslibtool-e5f056087447ea576e62ac00273e7c7e4cec123d.tar.bz2
slibtool-e5f056087447ea576e62ac00273e7c7e4cec123d.tar.xz
slbt_ar_parse_primary_armap_sysv_64(): properly handle empty string tables.
Diffstat (limited to 'src/arbits')
-rw-r--r--src/arbits/slbt_archive_meta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arbits/slbt_archive_meta.c b/src/arbits/slbt_archive_meta.c
index 45f47fd..8eb64db 100644
--- a/src/arbits/slbt_archive_meta.c
+++ b/src/arbits/slbt_archive_meta.c
@@ -599,7 +599,7 @@ static int slbt_ar_parse_primary_armap_sysv_64(
cap = memberp->ar_object_data;
cap += memberp->ar_object_size;
- if (cap == m->symstrs)
+ if ((cap == m->symstrs) && nsyms)
return SLBT_CUSTOM_ERROR(
dctx,
SLBT_ERR_AR_INVALID_ARMAP_STRING_TABLE);