Re: [PATCHv2 iproute2] ip route: check ftell, fseek return value

2016-09-20 Thread Stephen Hemminger
On Thu, 8 Sep 2016 10:26:57 +0800 Hangbin Liu wrote: > ftell() may return -1 in error case, which is not handled and therefore pass a > negative offset to fseek(). The return code of fseek() is also not checked. > > Reported-by: Phil Sutter > Signed-off-by: Hangbin Liu Applied

[PATCHv2 iproute2] ip route: check ftell, fseek return value

2016-09-07 Thread Hangbin Liu
ftell() may return -1 in error case, which is not handled and therefore pass a negative offset to fseek(). The return code of fseek() is also not checked. Reported-by: Phil Sutter Signed-off-by: Hangbin Liu --- ip/iproute.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff -