Re: [PATCH] usbip: tools: fix atoi() on non-null terminated string

2018-10-25 Thread Shuah Khan
Hi Colin, On 10/16/2018 12:03 PM, Colin King wrote: > From: Colin Ian King > > Currently the call to atoi is being passed a single char string > that is not null terminated, so there is a potential read overrun > along the stack when parsing for an integer value. Fix this by > instead using a 2

[PATCH] usbip: tools: fix atoi() on non-null terminated string

2018-10-16 Thread Colin King
From: Colin Ian King Currently the call to atoi is being passed a single char string that is not null terminated, so there is a potential read overrun along the stack when parsing for an integer value. Fix this by instead using a 2 char string that is initialized to all zeros to ensure that a 1