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
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"
On 10/26/2014 10:03 PM, David Miller wrote:
From: Sasha Levin sasha.le...@oracle.com
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 string.h) must
be non-null even
On 10/27/2014 05:42 PM, Sasha Levin wrote:
On 10/26/2014 10:03 PM, David Miller wrote:
From: Sasha Levin sasha.le...@oracle.com
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
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
On 10/22/2014 02:15 AM, David Miller wrote:
From: Sasha Levin sasha.le...@oracle.com
Date: Tue, 21 Oct 2014 22:19:36 -0400
On 10/21/2014 09:39 PM, David Miller wrote:
From: Sasha Levin sasha.le...@oracle.com
Date: Tue, 21 Oct 2014 16:51:09 -0400
netlink uses empty data to seperate
From: Sasha Levin sasha.le...@oracle.com
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 string.h) must
be non-null even when nbytes==0
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
From: Sasha Levin sasha.le...@oracle.com
Date: Tue, 21 Oct 2014 22:19:36 -0400
On 10/21/2014 09:39 PM, David Miller wrote:
From: Sasha Levin sasha.le...@oracle.com
Date: Tue, 21 Oct 2014 16:51:09 -0400
netlink uses empty data to seperate different levels. However, we still
try to copy
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 sasha.le...@oracle.com
---
lib/nlattr.c |3 ++-
1 file changed, 2 insertions(+), 1
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.
>> >
>> >
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
From: Sasha Levin sasha.le...@oracle.com
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 sasha.le...@oracle.com
This
On 10/21/2014 09:39 PM, David Miller wrote:
From: Sasha Levin sasha.le...@oracle.com
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.
16 matches
Mail list logo