On 10/27/2014 05:42 PM, Sasha Levin wrote:
> On 10/26/2014 10:03 PM, David Miller wrote:
>> From: Sasha Levin
>> Date: Sun, 26 Oct 2014 19:32:42 -0400
>>
>>> How so? GCC states clearly that you should *never* pass a NULL
>>> pointer there:
>>>
>>> "The pointers passed to memmove (and similar funct
On 10/26/2014 10:03 PM, David Miller wrote:
> From: Sasha Levin
> Date: Sun, 26 Oct 2014 19:32:42 -0400
>
>> How so? GCC states clearly that you should *never* pass a NULL
>> pointer there:
>>
>> "The pointers passed to memmove (and similar functions in ) must
>> be non-null even when nbytes==0"
From: Sasha Levin
Date: Sun, 26 Oct 2014 19:32:42 -0400
> How so? GCC states clearly that you should *never* pass a NULL
> pointer there:
>
> "The pointers passed to memmove (and similar functions in ) must
> be non-null even when nbytes==0"
> (https://gcc.gnu.org/gcc-4.9/porting_to.html).
>
>
On 10/22/2014 02:15 AM, David Miller wrote:
> From: Sasha Levin
> Date: Tue, 21 Oct 2014 22:19:36 -0400
>
>> On 10/21/2014 09:39 PM, David Miller wrote:
>>> From: Sasha Levin
>>> Date: Tue, 21 Oct 2014 16:51:09 -0400
>>>
> netlink uses empty data to seperate different levels. However, we sti
From: Sasha Levin
> netlink uses empty data to seperate different levels. However, we still
> try to copy that data from a NULL ptr using memcpy, which is an undefined
> behaviour.
>
> Signed-off-by: Sasha Levin
> ---
> lib/nlattr.c |3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
From: Sasha Levin
Date: Tue, 21 Oct 2014 22:19:36 -0400
> On 10/21/2014 09:39 PM, David Miller wrote:
>> From: Sasha Levin
>> Date: Tue, 21 Oct 2014 16:51:09 -0400
>>
>>> > netlink uses empty data to seperate different levels. However, we still
>>> > try to copy that data from a NULL ptr using
On 10/21/2014 09:39 PM, David Miller wrote:
> From: Sasha Levin
> Date: Tue, 21 Oct 2014 16:51:09 -0400
>
>> > netlink uses empty data to seperate different levels. However, we still
>> > try to copy that data from a NULL ptr using memcpy, which is an undefined
>> > behaviour.
>> >
>> > Signed-o
From: Sasha Levin
Date: Tue, 21 Oct 2014 16:51:09 -0400
> netlink uses empty data to seperate different levels. However, we still
> try to copy that data from a NULL ptr using memcpy, which is an undefined
> behaviour.
>
> Signed-off-by: Sasha Levin
This isn't a POSIX C library, this it the Li
netlink uses empty data to seperate different levels. However, we still
try to copy that data from a NULL ptr using memcpy, which is an undefined
behaviour.
Signed-off-by: Sasha Levin
---
lib/nlattr.c |3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/nlattr.c b/lib/nla
9 matches
Mail list logo