projects
/
platform
/
upstream
/
toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf5c28a
)
Fix stack-buffer-overflow
00/280000/1
author
jiung-yu
<jiung.yu@samsung.com>
Mon, 22 Aug 2022 06:55:21 +0000
(15:55 +0900)
committer
jiung-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
patch
|
blob
|
history
diff --git
a/toys/pending/dhcpd.c
b/toys/pending/dhcpd.c
index
ffa812e
..
bf3f2eb
100644
(file)
--- a/
toys/pending/dhcpd.c
+++ b/
toys/pending/dhcpd.c
@@
-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--);