Fix stack-buffer-overflow 00/280000/1
authorjiung-yu <jiung.yu@samsung.com>
Mon, 22 Aug 2022 06:55:21 +0000 (15:55 +0900)
committerjiung-yu <jiung.yu@samsung.com>
Mon, 22 Aug 2022 06:55:43 +0000 (15:55 +0900)
Change-Id: I1e7d280eee531ea31c54eb74f4e42cf8411a0cf3
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
toys/pending/dhcpd.c

index ffa812e..bf3f2eb 100644 (file)
@@ -749,7 +749,7 @@ static int parse_server_config(char *config_file, struct config_keyword *confkey
 
   if (!(fs = fopen(config_file, "r"))) perror_msg("%s", config_file);
   for (len = 0, linelen = 0; fs;) {
-    len = getline(&confline_temp, (size_t*) &linelen, fs);
+    len = getline(&confline_temp, &linelen, fs);
     confline = confline_temp;
     if (len <= 0) break;
     for (; *confline == ' '; confline++, len--);