]> Git Repo - linux.git/commit
regulatory: add NUL to alpha2
authorEliad Peller <[email protected]>
Wed, 11 Jun 2014 07:23:35 +0000 (10:23 +0300)
committerJohannes Berg <[email protected]>
Fri, 15 Aug 2014 11:51:40 +0000 (13:51 +0200)
commita5fe8e7695dc3f547e955ad2b662e3e72969e506
tree77d69bf50907fb36473a6f3c341dc06802e27a66
parentc9d26423e56ce1ab4d786f92aebecf859d419293
regulatory: add NUL to alpha2

alpha2 is defined as 2-chars array, but is used in multiple
places as string (e.g. with nla_put_string calls), which
might leak kernel data.

Solve it by simply adding an extra char for the NULL
terminator, making such operations safe.

Cc: [email protected]
Signed-off-by: Eliad Peller <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
include/net/regulatory.h
This page took 0.055899 seconds and 4 git commands to generate.