⛅ Sync 2026-08-05 21:58:21

This commit is contained in:
github-actions[bot] committed 2026-08-05 21:58:21 +08:00
1 parent ca3fdb1643
commit 66ea3b0c46
734 files changed
+225296 -28

No files matched your search

@@ -1,13 +1,3 @@
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,7 @@ build/
.deps/
/Makefile
src/Makefile
+server/Makefile
libev/Makefile
libudns/Makefile
libcork/Makefile
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,7 +1,7 @@
@@ -1,11 +1,11 @@
--- a/src/local.c
+++ b/src/local.c
@@ -718,7 +718,7 @@ server_recv_cb(EV_P_ ev_io *w, int reven
ss_free(hostname);
} else {
- strncpy(host, ip, sizeof(ip));
+ strncpy(host, ip, INET6_ADDRSTRLEN);
}
}
ss_free(hostname);
} else {
- strncpy(host, ip, sizeof(ip));
+ strncpy(host, ip, INET6_ADDRSTRLEN);
}
}
@@ -0,0 +1,21 @@
--- a/libev/ev.c
+++ b/libev/ev.c
@@ -1946,7 +1946,7 @@ static void * noinline ecb_cold
array_realloc (int elem, void *base, int *cur, int cnt)
{
*cur = array_nextsize (elem, *cur, cnt);
- return ev_realloc (base, elem * *cur);
+ return ev_realloc (base, (size_t)elem * (size_t)*cur);
}
#define array_init_zero(base,count) \
@@ -4252,7 +4252,8 @@ infy_add (EV_P_ ev_stat *w)
if ((errno == ENOENT || errno == EACCES) && strlen (w->path) < 4096)
{
char path [4096];
- strcpy (path, w->path);
+ strncpy (path, w->path, sizeof (path) - 1);
+ path [sizeof (path) - 1] = 0;
do
{