Thread (4 messages) 4 messages, 2 authors, 2017-12-20

Re: [PATCH net-next] dev: Correctly get length of alias string in dev_set_alias(),Re: [PATCH net-next] dev: Correctly get length of alias string in dev_set_alias()

flat view

From: David Miller <davem@davemloft.net>
Date: 2017-12-20 19:55:06

From: Serhey Popovich <redacted>
Date: Wed, 20 Dec 2017 21:44:46 +0200
Sorry but I do not mean larger. I mean shorter. When nla_len() >
strlen() we allocate extra space up to IFALIASZ - 1.
But the user typically does not do that.
This is definitely fix nothing: we never get above the bounds, but
in case if NULL terminator is in the middle of string with nla_len()
we might allocate unused extra space.
See above, not worth optimizing for.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help