diff options
author | midipix <writeonce@midipix.org> | 2024-12-30 06:09:51 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-12-30 06:17:43 +0000 |
commit | 942f5fa3eb43b8c3c119f531b6bed9b2a619151d (patch) | |
tree | 3e8f00eec0b29f5016f907a4fb7b0f5e506b3300 /src/arbits | |
parent | 9d68873391319e10e9bcd51566ec272e8c138781 (diff) | |
download | slibtool-942f5fa3eb43b8c3c119f531b6bed9b2a619151d.tar.bz2 slibtool-942f5fa3eb43b8c3c119f531b6bed9b2a619151d.tar.xz |
slbt_ar_store_archive(): guard against 32-bit st_ino types.
Diffstat (limited to 'src/arbits')
-rw-r--r-- | src/arbits/slbt_archive_store.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/arbits/slbt_archive_store.c b/src/arbits/slbt_archive_store.c index 7830784..e303cb7 100644 --- a/src/arbits/slbt_archive_store.c +++ b/src/arbits/slbt_archive_store.c @@ -42,6 +42,7 @@ int slbt_ar_store_archive( int fdat; int fdtmp; int64_t tint; + int64_t stino; void * addr; char * mark; char * slash; @@ -91,6 +92,7 @@ int slbt_ar_store_archive( dctx,0); } + stino = st.st_ino; buflen = sizeof(buf) - (mark - buf); nbytes = snprintf( mark, @@ -101,7 +103,7 @@ int slbt_ar_store_archive( ".salt.%p" ".pid.%d" ".tmp", - st.st_ino, + stino, tint,addr, getpid()); |