From 71fe9434a9f64cfc5ea8489f5847a79fce4431ae Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 16 Sep 2018 00:24:47 +0100 Subject: [PATCH] binman: fix another off by one --- Kernel/tools/binman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/tools/binman.c b/Kernel/tools/binman.c index 588924d4..80fda6d4 100644 --- a/Kernel/tools/binman.c +++ b/Kernel/tools/binman.c @@ -137,7 +137,7 @@ int main(int argc, char *argv[]) copy the initializers into initialized we can only use the space for bss */ if (s__DISCARD && s__DISCARD + l__DISCARD > s__INITIALIZER && - s__INITIALIZER + l__INITIALIZED >= s__DISCARD) { + s__INITIALIZER + l__INITIALIZED > s__DISCARD) { fprintf(stderr, "Initializer will have overwritten DISCARD\n"); exit(1); } -- 2.34.1