busybox/networking
Denys Vlasenko 3d6f95ede6 whois: fix a possible out-of-bounds stack access
If fgets() returns incomplete string, we replace NUL with
'\n', and then trim() runs on a non-NUL-terminated buffer.
Prevent that.

While at it, bump buffer from 1k to 2k.

function                                             old     new   delta
query                                                519     524      +5

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2018-09-04 14:48:00 +02:00
..
2017-07-21 09:50:55 +02:00
2018-02-11 21:16:24 +01:00
2017-08-06 20:14:02 +02:00
2017-07-21 09:50:55 +02:00
2013-01-14 01:34:48 +01:00
2018-04-29 13:46:49 +02:00
2018-08-14 11:19:09 +02:00
2017-08-08 21:55:02 +02:00
2014-01-09 20:09:43 +01:00
2016-03-04 07:36:04 +01:00
2017-08-08 21:55:02 +02:00
2017-08-08 21:55:02 +02:00
2018-03-20 11:41:51 +01:00
2018-02-08 08:42:37 +01:00
2017-08-08 21:55:02 +02:00
2017-12-31 17:30:02 +01:00
2017-04-03 21:53:29 +02:00
2017-01-19 15:51:00 +01:00
2017-01-19 15:51:00 +01:00
2017-07-15 17:13:08 +02:00
2017-08-08 21:55:02 +02:00