From efe6af8465f61aea6f25d8aeac13cc8326f161f4 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Wed, 3 Jun 2020 20:36:12 -0400 Subject: [PATCH] Modified the EFread routine so that it will not infinite loop on a truncated line. There is still a question as to why an example occurred that caused a line to be truncated, and whether a buffer size needs to be made larger or made dynamically allocated. --- extflat/EFread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extflat/EFread.c b/extflat/EFread.c index 83e7e62f..7cabd977 100644 --- a/extflat/EFread.c +++ b/extflat/EFread.c @@ -756,7 +756,7 @@ start: argc++; } - if (argc == 0) + if ((argc == 0) && (size > 0)) goto start; return (argc);