Skip to content

Commit c1ca07f

Browse files
authored
Merge pull request #65 from jychen0611/payload
Fix buffer overflow
2 parents 35ca058 + 3626397 commit c1ca07f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vwifi-tool.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ bool denylist_send(char *denylist)
9292
nlh->nlmsg_pid = getpid();
9393
nlh->nlmsg_flags = 0;
9494

95-
strncpy(NLMSG_DATA(nlh), denylist, NLMSG_SPACE(MAX_PAYLOAD));
95+
strncpy(NLMSG_DATA(nlh), denylist, MAX_PAYLOAD);
9696

9797
struct iovec iov = {
9898
.iov_base = (void *) nlh,

0 commit comments

Comments
 (0)