aboutsummaryrefslogtreecommitdiff
path: root/src/extract.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-12-03 17:41:23 -0500
committerB. Watson <urchlay@slackware.uk>2025-12-03 17:41:23 -0500
commit9569e9c6b4557020167327dc3bafb32801509516 (patch)
tree140a6fb6b3df60db3ef1c2819154cbb33297cb6b /src/extract.c
parent2658f7e516e3257fff0973b0bd952c5c707773cd (diff)
downloadalftools-9569e9c6b4557020167327dc3bafb32801509516.tar.gz
unalf: truncation is fatal again (avoids segfaults).
Diffstat (limited to 'src/extract.c')
-rw-r--r--src/extract.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/extract.c b/src/extract.c
index ff8d780..98523db 100644
--- a/src/extract.c
+++ b/src/extract.c
@@ -161,7 +161,8 @@ void chksum_err(void) {
}
void truncated_err(void){
- fprintf(stderr, "%s: warning: compressed data is truncated, EOF before end marker\n", self);
+ fprintf(stderr, "%s: fatal: compressed data is truncated, EOF before end marker\n", self);
+ exit(1);
}
void stack_underrun(void){