{"schema":"libjg2-1",
"vpath":"/git/",
"avatar":"/git/avatar/",
"alang":"",
"gen_ut":1745830056,
"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":"2e558cfd8abc355959a5ea65c07d5c36",
"commit": {"type":"commit",
"time": 1737535425,
"time_ofs": 0,
"oid_tree": { "oid": "bf55720658acb9c7e9a1de81f23e932fb3e40fe7", "alias": []},
"oid":{ "oid": "8e0e0b91df1105d2816b08e1812afd9355eb6ea1", "alias": []},
"msg": "coverity 872858: hash gen overflow false positive",
"sig_commit": { "git_time": { "time": 1737535425, "offset": 0 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },
"sig_author": { "git_time": { "time": 1737023693, "offset": 0 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }},
"body": "coverity 872858: hash gen overflow false positive\n\nHelp it ignore that we use the MS 7 bits in the next part of the operation\nand discard it in the first part.\n"
,
"diff": "diff --git a/lib/core/lws_map.c b/lib/core/lws_map.c\nindex b319d79..3578aa8 100644\n--- a/lib/core/lws_map.c\n+++ b/lib/core/lws_map.c\n@@ -88,7 +88,10 @@ lws_map_hash_from_key_default(const lws_map_key_t key, size_t kl)\n \tconst uint8_t *u \u003d (const uint8_t *)key;\n \n \twhile (kl--)\n-\t\th \u003d ((((h \u003c\u003c 7) | (h \u003e\u003e 25)) + 0xa1b2c3d4) ^ (*u++)) ^ h;\n+\t\th \u003d ((\n+\t\t\t(((h \u0026 0x1fffffff /* coverity */ ) \u003c\u003c 7) |\n+\t\t\t (h \u003e\u003e 25)) +\n+\t\t 0xa1b2c3d4) ^ (*u++)) ^ h;\n \n \treturn h;\n }\n","s":{"c":1745830056,"u": 2042}}
],"g": 3386,"chitpc": 0,"ehitpc": 0,"indexed":0
,
"ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}