Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"", "gen_ut":1750225664, "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":"fd5732e12a18baa4bc0645fd91022c6f", "commit": {"type":"commit", "time": 1422619760, "time_ofs": 480, "oid_tree": { "oid": "53a2410969bc47d500c6678b6d6abfdc24a6d1e3", "alias": []}, "oid":{ "oid": "2121e8a7fc0acef03bc1a6205ba4a3a85a9d76f6", "alias": []}, "msg": "Subject: [PATCH] Fix bug parsing unknown headers.", "sig_commit": { "git_time": { "time": 1422619760, "offset": 480 }, "name": "Andy Green", "email": "andy.green@linaro.org", "md5": "4863edaebb4491aa6049a4d2d9c98c2c" }, "sig_author": { "git_time": { "time": 1422619483, "offset": 0 }, "name": "Drew Noakes", "email": "git@drewnoakes.com", "md5": "65ca276cf3fe92b1de700826c74f6747" }}, "body": "Subject: [PATCH] Fix bug parsing unknown headers.\n\nBug was introduced in 49f72aa45.\n" , "diff": "diff --git a/lib/parsers.c b/lib/parsers.c\nindex 25996fb..6a0fe09 100644\n--- a/lib/parsers.c\n+++ b/lib/parsers.c\n@@ -422,8 +422,11 @@ swallow:\n \t\t\t * treat as dangerous\n \t\t\t */\n \n-\t\t\tlwsl_info(\u0022Unknown method - dropping\u005cn\u0022);\n-\t\t\treturn -1;\n+\t\t\tif (m \u003d\u003d ARRAY_SIZE(methods)) {\n+\t\t\t\tlwsl_info(\u0022Unknown method - dropping\u005cn\u0022);\n+\t\t\t\treturn -1;\n+\t\t\t}\n+\t\t\tbreak;\n \t\t}\n \t\tif (lextable[wsi-\u003eu.hdr.lextable_pos] \u003c FAIL_CHAR) {\n \t\t\t/* terminal state */\n","s":{"c":1750162764,"u": 1226}} ],"g": 955,"chitpc": 0,"ehitpc": 0,"indexed":0 , "ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "7d0a"}