{"schema":"libjg2-1",
"vpath":"/git/",
"avatar":"/git/avatar/",
"alang":"",
"gen_ut":1745735257,
"reponame":"sai",
"desc":"Sai lightweight distributed CI",
"owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://warmcat.com/repo/sai",
"f":3,
"items": [
{"schema":"libjg2-1",
"cid":"0113852aee81f09591c151affe4946e2",
"commit": {"type":"commit",
"time": 1508889258,
"time_ofs": 480,
"oid_tree": { "oid": "2e415e327240ec25e59800d6412833e2cae99a80", "alias": []},
"oid":{ "oid": "4afeefbb3cc8185a89626364b0babc5998ced581", "alias": []},
"msg": "build: strict-aliasing on old compiler workaround",
"sig_commit": { "git_time": { "time": 1508889258, "offset": 480 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },
"sig_author": { "git_time": { "time": 1508844346, "offset": 480 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }},
"body": "build: strict-aliasing on old compiler workaround\n\nhttps://github.com/warmcat/libwebsockets/issues/1067"
,
"diff": "diff --git a/lib/libwebsockets.c b/lib/libwebsockets.c\nindex 5abb1a7..04f6de1 100644\n--- a/lib/libwebsockets.c\n+++ b/lib/libwebsockets.c\n@@ -2265,7 +2265,11 @@ lws_socket_bind(struct lws_vhost *vhost, lws_sockfd_type sockfd, int port,\n \t\t\t\t ntohs(((struct sockaddr_in6 *) \u0026sin)-\u003esin6_port) :\n \t\t\t\t ntohs(((struct sockaddr_in *) \u0026sin)-\u003esin_port);\n #else\n-\t\tport \u003d ntohs(((struct sockaddr_in *) \u0026sin)-\u003esin_port);\n+\t\t{\n+\t\t\tstruct sockaddr_in sain;\n+\t\t\tmemcpy(\u0026sain, \u0026sin, sizeof(sain));\n+\t\t\tport \u003d ntohs(sain.sin_port);\n+\t\t}\n #endif\n #endif\n \n","s":{"c":1745735257,"u": 3097}}
],"g": 3929,"chitpc": 0,"ehitpc": 0,"indexed":0
,
"ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}