{"schema":"libjg2-1",
"vpath":"/git/",
"avatar":"/git/avatar/",
"alang":"",
"gen_ut":1752718694,
"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":"cc4dee63f505495ccda1a15daf9078a9",
"commit": {"type":"commit",
"time": 1541459052,
"time_ofs": 480,
"oid_tree": { "oid": "c27d1067697d0345d84ae109b12d320b5a47e0d1", "alias": []},
"oid":{ "oid": "2312ee88fccf2f60abecd331f6b88b13ab4f6dfa", "alias": []},
"msg": "fts: clear down the path stack with memset",
"sig_commit": { "git_time": { "time": 1541459052, "offset": 480 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },
"sig_author": { "git_time": { "time": 1541459052, "offset": 480 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }},
"body": "fts: clear down the path stack with memset\n\nhttps://github.com/warmcat/libwebsockets/issues/1445"
,
"diff": "diff --git a/lib/misc/fts/trie-fd.c b/lib/misc/fts/trie-fd.c\nindex f9181e9..18eb5df 100644\n--- a/lib/misc/fts/trie-fd.c\n+++ b/lib/misc/fts/trie-fd.c\n@@ -823,14 +823,11 @@ autocomp:\n \tif (pos \u003e (int)sizeof(s[sp].ch[0].name) - 1)\n \t\tpos \u003d (int)sizeof(s[sp].ch[0].name) - 1;\n \n-\ts[sp].child_count \u003d 0;\n+\tmemset(\u0026s[sp], 0, sizeof(s[sp]));\n+\n \ts[sp].child \u003d 1;\n-\ts[sp].once \u003d 0;\n \ts[sp].tifs \u003d fileofs_tif_start;\n \ts[sp].self \u003d child_ofs;\n-\ts[sp].ch[0].name_length \u003d 0;\n-\ts[sp].done_children \u003d 0;\n-\ts[sp + 1].done_children \u003d 0;\n \ts[sp].ch[0].effpos \u003d pos;\n \n \tif (pos \u003d\u003d nl)\n@@ -864,11 +861,8 @@ autocomp:\n \t\tif (!s[sp].done_children \u0026\u0026 children) {\n \t\t\ts[sp].done_children \u003d 1;\n \t\t\tsp++;\n-\t\t\ts[sp].child \u003d 0;\n+\t\t\tmemset(\u0026s[sp], 0, sizeof(s[sp]));\n \t\t\ts[sp].tifs \u003d fileofs_tif_start;\n-\t\t\ts[sp].once \u003d 0;\n-\t\t\ts[sp].child_count \u003d 0;\n-\t\t\ts[sp].done_children \u003d 0;\n \t\t\ts[sp].self \u003d child_ofs;\n \n \t\t\tfor (n \u003d 0; n \u003c (int)children \u0026\u0026 s[sp].child_count \u003c\n","s":{"c":1752718694,"u": 1617}}
],"g": 2452,"chitpc": 0,"ehitpc": 0,"indexed":0
,
"ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}