You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
buffersize hardcoded in iwinfo.h
#define IWINFO_BUFSIZE 24 * 1024
in my setup size of the one item in assoclist output is around 175 Byte so:
24 x 1024 / 175 = 140 clients won't cause any problems, but when there is more, iwinfo assoclist
crashes with segfault in luci overview page and wireless page uses this function and crashes rpcd service.
'iw {phy} stations dump -v' - works fine in same conditions.
The text was updated successfully, but these errors were encountered:
mrisaev
changed the title
iwinfo {phy} assoclist will cause segfault and crush rpcd if approx 150+ clients connected to AP
iwinfo {phy} assoclist will cause segfault and crash rpcd if approx 150+ clients connected to AP
Nov 2, 2024
Limit assoclist element to IWINFO_BUFSIZE. This is to fix a segfault if
the clients are more than 140. Once the local buffer is filled, the
function stop parsing additional clients and returns info for the parsed
ones.
Fixes: openwrt#15
Signed-off-by: Christian Marangi <[email protected]>
buffersize hardcoded in iwinfo.h
#define IWINFO_BUFSIZE 24 * 1024
in my setup size of the one item in assoclist output is around 175 Byte so:
24 x 1024 / 175 = 140 clients won't cause any problems, but when there is more, iwinfo assoclist
crashes with segfault in luci overview page and wireless page uses this function and crashes rpcd service.
'iw {phy} stations dump -v' - works fine in same conditions.
The text was updated successfully, but these errors were encountered: