Commit graph

6 commits

Author SHA1 Message Date
Andy Green
151aa809a6 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 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.

In 1.7.x, there's no affected code in the library itself, just a couple on instances in the
test app code.
2016-09-15 02:36:22 +08:00
Meir Yanovich
ec81fd460b win32 needs strange strftime args 2016-04-05 19:51:25 +08:00
Andy Green
7bb600f0c7 lws status fix LWS_PRE
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-25 09:27:02 +08:00
Andy Green
969212e1dd windows doesnt have localtime_r
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-21 21:41:22 +08:00
Andy Green
b33c72c770 test server status no ssl include time header
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-21 15:12:20 +08:00
Andy Green
4038721baf test server add lws_status
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-21 13:44:07 +08:00