1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/plugins
Andy Green a496700b3a lws_snprintf
Thanks to Fabrice Gilot for reporting the problem that led to uncovering this.

Due to a misunderstanding of the return value of snprintf (it is not truncated according
to the max size passed in) in several places relying on snprintf to truncate the length
overflows are possible.

This patch wraps snprintf with a new lws_snprintf() which does truncate its length to allow
the buffer limiting scheme to work properly.

All users should update with these fixes.
2016-09-15 02:22:57 +08:00
..
generic-sessions lws_snprintf 2016-09-15 02:22:57 +08:00
generic-table lws_snprintf 2016-09-15 02:22:57 +08:00
lwsws-logo.png http cache policy 2016-04-22 08:53:49 +08:00
protocol_client_loopback_test.c plugins add win modifiers before libwebsockets.h for dll export flag 2016-05-26 07:52:20 +08:00
protocol_dumb_increment.c lws_snprintf 2016-09-15 02:22:57 +08:00
protocol_lws_mirror.c esp8266 initial support 2016-08-10 21:20:23 +08:00
protocol_lws_server_status.c Plugin server-status cleanup 2016-08-10 21:20:23 +08:00
protocol_lws_status.c lws_snprintf 2016-09-15 02:22:57 +08:00
protocol_post_demo.c lws_snprintf 2016-09-15 02:22:57 +08:00
server-status.html per-vhost headers and lwsws conf support 2016-08-27 17:07:06 +08:00