Re: buffer overflow warning in /bin/sh

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Mon, 29 Feb 2016 00:24:44 +0100
On 28 Feb 2016, at 23:16, Jilles Tjoelker <jilles_at_stack.nl> wrote:
> 
> On Fri, Feb 26, 2016 at 06:21:20PM +0100, Dimitry Andric wrote:
...
>>  This frame has 3 object(s):
>>    [16, 20) 'bqlist'
>>    [32, 128) 'state_static' <== Memory access at offset 32 is inside this variable
>>    [160, 170) 'buf'
...
>> This may be a false positive though.
> 
> The reported store, which is near the top of the function, is clearly
> within bounds.

Yes, it's definitely a false positive.  I'm still attempting to find out
where this goes awry, but it isn't in sh, at least.  (After some help
from Bryan Drewery I managed to run it through valgrind-devel, and that
does not complain about anything...)

-Dimitry


Received on Sun Feb 28 2016 - 22:25:10 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:03 UTC