]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commit
crypto: ensure geniv null terminated
authorGeorge Bauernschmidt <georgeb@nvidia.com>
Tue, 13 Sep 2016 00:10:48 +0000 (17:10 -0700)
committermobile promotions <svcmobile_promotions@nvidia.com>
Thu, 15 Sep 2016 07:44:18 +0000 (00:44 -0700)
commitdffb27bbc369aa5c1ac4b96fefffd3768e311304
tree2cf3f0c21952be5c105ec2bae9c3f30e2d9d13f3
parent572d4b5a6a56124ef01418ab5fabfee790d18e07
crypto: ensure geniv null terminated

Bug 1781343

Fix Coverity defect
CID 24110

- Replace strncpy with strlcpy to ensure the geniv string
  is null terminated.

Change-Id: I3f8c6361518168b78ef3c57e75f61b7a879fc3f3
Signed-off-by: George Bauernschmidt <georgeb@nvidia.com>
Reviewed-on: http://git-master/r/1219191
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
crypto/aead.c