From ae37265727ad5e6f43a4887e2d977e8ffb59ce65 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 27 Jul 2025 12:36:53 -0700 Subject: [PATCH] tail: check OFF_T_MAX vs COPY_A_BUFFER * src/tail.c: Document an otherwise-unstated assumption. --- src/tail.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tail.c b/src/tail.c index 255f581fa1..8dd03a7c4d 100644 --- a/src/tail.c +++ b/src/tail.c @@ -81,6 +81,7 @@ /* Special values for dump_remainder's N_BYTES parameter. */ #define COPY_TO_EOF UINTMAX_MAX #define COPY_A_BUFFER (UINTMAX_MAX - 1) +static_assert (OFF_T_MAX < COPY_A_BUFFER); /* FIXME: make Follow_name the default? */ #define DEFAULT_FOLLOW_MODE Follow_descriptor -- 2.47.2