--- zzzz-none-000/linux-4.19.183/scripts/kconfig/conf.c 2021-03-24 10:07:39.000000000 +0000 +++ bcm63-7530ax-756/linux-4.19.183/scripts/kconfig/conf.c 2023-06-28 08:54:21.000000000 +0000 @@ -108,6 +108,12 @@ case oldaskconfig: fflush(stdout); xfgets(line, sizeof(line), stdin); +#if defined(CONFIG_BCM_KF_FAIL_CONFIG_ON_EOF) || !defined(CONFIG_BCM_IN_KERNEL) + if (feof(stdin)) { + fprintf(stderr, "Unexpected EOF\n"); + exit(1); + } +#endif return 1; default: break; @@ -302,6 +308,12 @@ case oldaskconfig: fflush(stdout); xfgets(line, sizeof(line), stdin); +#if defined(CONFIG_BCM_KF_FAIL_CONFIG_ON_EOF) || !defined(CONFIG_BCM_IN_KERNEL) + if (feof(stdin)) { + fprintf(stderr, "Unexpected EOF\n"); + exit(1); + } +#endif strip(line); if (line[0] == '?') { print_help(menu);