summaryrefslogtreecommitdiffstats
path: root/lib/mpi
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2022-11-08 16:11:08 +0200
committerJakub Kicinski <kuba@kernel.org>2022-11-09 19:28:02 -0800
commit21780f89d65837e23fef825c79aa836c1cb3a8e9 (patch)
tree4d87dc1dee32ee02ccae4c3965917df08f940823 /lib/mpi
parent13bd85580b85768238cf726dec0ddd89c06a230a (diff)
downloadlinux-21780f89d65837e23fef825c79aa836c1cb3a8e9.tar.bz2
mac_pton: Don't access memory over expected length
The strlen() may go too far when estimating the length of the given string. In some cases it may go over the boundary and crash the system which is the case according to the commit 13a55372b64e ("ARM: orion5x: Revert commit 4904dbda41c8."). Rectify this by switching to strnlen() for the expected maximum length of the string. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20221108141108.62974-1-andriy.shevchenko@linux.intel.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'lib/mpi')
0 files changed, 0 insertions, 0 deletions