From: Francis Laniel
Before this commit, nla_strlcpy first memseted dst to 0 then wrote src into it.
This is inefficient because bytes whom number is less than src length are
written
twice.
This patch solves this issue by first writing src into dst then fill dst with
0's.
Note that, in the case
From: Francis Laniel
nla_strlcpy now returns -E2BIG if src was truncated when written to dst.
It also returns this error value if dstsize is 0 or higher than INT_MAX.
For example, if src is "foo\0" and dst is 3 bytes long, the result will be:
1. "foG" after memcpy (G means garbage).
2. "fo\0" af
From: Francis Laniel
Calls to nla_strlcpy are now replaced by calls to nla_strscpy which is the new
name of this function.
Signed-off-by: Francis Laniel
Reviewed-by: Kees Cook
---
drivers/infiniband/core/nldev.c| 10 +-
drivers/net/can/vxcan.c| 4 ++--
From: Francis Laniel
Hi.
I hope you are all fine and the same for your relatives.
This patch set answers to first three issues listed in:
https://github.com/KSPP/linux/issues/110
To sum up, the patch contributions are the following:
1. the first patch fixes an inefficiency where some bytes in
From: Francis Laniel
Hi.
I hope you are all fine and the same for your relatives.
This patch set answers to first three issues listed in:
https://github.com/KSPP/linux/issues/110
To sum up, the patch contributions are the following:
1. the first patch fixes an inefficiency where some bytes in
From: Francis Laniel
Calls to nla_strlcpy are now replaced by calls to nla_strscpy which is the new
name of this function.
Signed-off-by: Francis Laniel
Reviewed-by: Kees Cook
---
drivers/infiniband/core/nldev.c| 10 +-
drivers/net/can/vxcan.c| 4 ++--
From: Francis Laniel
Before this commit, nla_strlcpy first memseted dst to 0 then wrote src into it.
This is inefficient because bytes whom number is less than src length are
written
twice.
This patch solves this issue by first writing src into dst then fill dst with
0's.
Note that, in the case
From: Francis Laniel
nla_strlcpy now returns -E2BIG if src was truncated when written to dst.
It also returns this error value if dstsize is 0 or higher than INT_MAX.
For example, if src is "foo\0" and dst is 3 bytes long, the result will be:
1. "foG" after memcpy (G means garbage).
2. "fo\0" af
From: Francis Laniel
Calls to nla_strlcpy are now replaced by calls to nla_strscpy which is the new
name of this function.
Signed-off-by: Francis Laniel
Reviewed-by: Kees Cook
---
drivers/infiniband/core/nldev.c| 10 +-
drivers/net/can/vxcan.c| 4 ++--
From: Francis Laniel
nla_strlcpy now returns -E2BIG if src was truncated when written to dst.
It also returns this error value if dstsize is 0 or higher than INT_MAX.
For example, if src is "foo\0" and dst is 3 bytes long, the result will be:
1. "foG" after memcpy (G means garbage).
2. "fo\0" af
From: Francis Laniel
Before this commit, nla_strlcpy first memseted dst to 0 then wrote src into it.
This is inefficient because bytes whom number is less than src length are
written
twice.
This patch solves this issue by first writing src into dst then fill dst with
0's.
Note that, in the case
From: Francis Laniel
Hi.
I hope your relatives and yourselves are fine.
This patch set answers to first three issues listed in:
https://github.com/KSPP/linux/issues/110
To sum up, the first patch fixes an inefficiency where some bytes in dst were
written twice, one with 0 the other with src c
From: Francis Laniel
Before this commit, nla_strlcpy first memseted dst to 0 then wrote src into it.
This is inefficient because bytes whom number is less than src length are
written
twice.
This patch solves this issue by first writing src into dst then fill dst with
0's.
Note that, in the case
From: Francis Laniel
Hi.
I hope your relatives and yourselves are fine.
This patch set answers to first three issues listed in:
https://github.com/KSPP/linux/issues/110
To sum up, the first patch fixes an inefficiency where some bytes in dst were
written twice, one with 0 the other with src c
From: Francis Laniel
nla_strlcpy now returns -E2BIG if src was truncated when written to dst.
It also returns this error value if dstsize is 0 or higher than INT_MAX.
For example, if src is "foo\0" and dst is 3 bytes long, the result will be:
1. "foG" after memcpy (G means garbage).
2. "fo\0" af
From: Francis Laniel
Calls to nla_strlcpy are now replaced by calls to nla_strscpy which is the new
name of this function.
Signed-off-by: Francis Laniel
---
drivers/infiniband/core/nldev.c| 10 +-
drivers/net/can/vxcan.c| 4 ++--
drivers/net/veth.c
16 matches
Mail list logo