Re: [PATCH iproute2] ss: fix NULL dereference when rendering without header

2018-03-03 Thread Stefano Brivio
On Sat, 3 Mar 2018 16:59:44 + Jean-Philippe Brucker wrote: > When ss is invoked with the no-header flag, if the query doesn't return > any result, render() is called with 'buffer' uninitialized. This > currently leads to a segfault. Ensure that buffer is initialized before > rendering. > >

[PATCH iproute2] ss: fix NULL dereference when rendering without header

2018-03-03 Thread Jean-Philippe Brucker
When ss is invoked with the no-header flag, if the query doesn't return any result, render() is called with 'buffer' uninitialized. This currently leads to a segfault. Ensure that buffer is initialized before rendering. The bug can be triggered with: ss -H sport = 10 Signed-off-by: Jean-Phili