Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"", "gen_ut":1756843100, "reponame":"libwebsockets", "desc":"libwebsockets lightweight C networking library", "owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://libwebsockets.org/repo/libwebsockets", "f":3, "items": [ {"schema":"libjg2-1", "cid":"50e4c665822692dc8de6cffca343d1ca", "commit": {"type":"commit", "time": 1749706756, "time_ofs": 60, "oid_tree": { "oid": "ac24edc3668ac42ff524b2055eed40b4b159df02", "alias": []}, "oid":{ "oid": "7af2637a3f9d4a7bb30ec105a83323903672668d", "alias": []}, "msg": "cov: m being negative isn't a thing", "sig_commit": { "git_time": { "time": 1749706756, "offset": 60 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }, "sig_author": { "git_time": { "time": 1749630190, "offset": 60 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }}, "body": "cov: m being negative isn't a thing\n" , "diff": "diff --git a/lib/roles/cgi/cgi-server.c b/lib/roles/cgi/cgi-server.c\nindex 3c93c6e..4c640ac 100644\n--- a/lib/roles/cgi/cgi-server.c\n+++ b/lib/roles/cgi/cgi-server.c\n@@ -217,9 +217,9 @@ lws_cgi_via_info(struct lws_cgi_info * cgiinfo)\n //\t\tif (cgiinfo-\u003escript_uri_path_len \u003c 0)\n //\t\t\turitok \u003d 0;\n \n-\t\tif (m \u003e\u003d 0) {\n+\t\tif (m \u003c (int)LWS_ARRAY_SIZE(meths)) {\n \t\t\tenv_array[n++] \u003d p;\n-\t\t\tif (m \u003c (int)LWS_ARRAY_SIZE(meths) - 1) {\n+\t\t\tif (m \u003c (int)LWS_ARRAY_SIZE(meths) - 1) { /* not the final, PATH one */\n \t\t\t\tp +\u003d lws_snprintf(p, lws_ptr_diff_size_t(end, p),\n \t\t\t\t\t\t \u0022REQUEST_METHOD\u003d%s\u0022,\n \t\t\t\t\t\t meth_names[m]);\n@@ -229,7 +229,7 @@ lws_cgi_via_info(struct lws_cgi_info * cgiinfo)\n \t\t\t} else {\n \t\t\t\tp +\u003d lws_snprintf(p, lws_ptr_diff_size_t(end, p),\n \t\t\t\t\t\t \u0022REQUEST_METHOD\u003d%s\u0022,\n-\t\t\t lws_hdr_simple_ptr(cgiinfo-\u003ewsi, WSI_TOKEN_HTTP_COLON_METHOD));\n+\t\t\t\tlws_hdr_simple_ptr(cgiinfo-\u003ewsi, WSI_TOKEN_HTTP_COLON_METHOD));\n \t\t\t\tsum +\u003d lws_snprintf(sum, lws_ptr_diff_size_t(sumend, sum), \u0022%s \u0022,\n \t\t\t\t\tlws_hdr_simple_ptr(cgiinfo-\u003ewsi,\n \t\t\t\t\t\t WSI_TOKEN_HTTP_COLON_METHOD));\n","s":{"c":1756843100,"u": 2947}} ],"g": 3499,"chitpc": 0,"ehitpc": 0,"indexed":0 , "ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}