Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"", "gen_ut":1752794692, "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":"153ced6c821e6f3707db9fe1cc925859", "commit": {"type":"commit", "time": 1734081746, "time_ofs": 0, "oid_tree": { "oid": "503434c65842a3b273bbb86807c49768c73b76d7", "alias": []}, "oid":{ "oid": "d568eccd4c4857109c5e34163b413e7dfe1451a0", "alias": []}, "msg": "spa: use sized local info rather than incoming", "sig_commit": { "git_time": { "time": 1734081746, "offset": 0 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }, "sig_author": { "git_time": { "time": 1734081496, "offset": 0 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }}, "body": "spa: use sized local info rather than incoming\n\nWe allow a default 0 length in the incoming const info to mean a default\nsize (of 512). We implement it by copying the incoming const info to a\ncopy in the spa that we can adapt, which is all good.\n\nBut in two cases after we dumbly use the incoming const info directly\ninstead of the adapted copy.\n\nhttps://github.com/warmcat/libwebsockets/issues/3294\n" , "diff": "diff --git a/lib/roles/http/server/lws-spa.c b/lib/roles/http/server/lws-spa.c\nindex f24f417..6d13b1f 100644\n--- a/lib/roles/http/server/lws-spa.c\n+++ b/lib/roles/http/server/lws-spa.c\n@@ -586,7 +586,7 @@ lws_spa_create_via_info(struct lws *wsi, const lws_spa_create_info_t *i)\n \tif (!spa-\u003estorage)\n \t\tgoto bail2;\n \n-\tspa-\u003eend \u003d spa-\u003estorage + i-\u003emax_storage - 1;\n+\tspa-\u003eend \u003d spa-\u003estorage + spa-\u003ei.max_storage - 1;\n \n \tif (i-\u003ecount_params) {\n \t\tif (i-\u003eac)\n@@ -599,7 +599,7 @@ lws_spa_create_via_info(struct lws *wsi, const lws_spa_create_info_t *i)\n \t\t\tgoto bail3;\n \t}\n \n-\tspa-\u003es \u003d lws_urldecode_s_create(spa, wsi, spa-\u003estorage, i-\u003emax_storage,\n+\tspa-\u003es \u003d lws_urldecode_s_create(spa, wsi, spa-\u003estorage, spa-\u003ei.max_storage,\n \t\t\t\t\tlws_urldecode_spa_cb);\n \tif (!spa-\u003es)\n \t\tgoto bail4;\n","s":{"c":1752794692,"u": 5484}} ],"g": 6320,"chitpc": 0,"ehitpc": 0,"indexed":0 , "ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}