git: opiekey (contrib): Fix serious (?) [-Wsizeof-pointer-memaccess]
John Marino
marino at crater.dragonflybsd.org
Tue Feb 10 13:42:52 PST 2015
commit 5f1ce051ad92f90610afb9534cd26ba1ab6b7086
Author: John Marino <draco at marino.st>
Date: Tue Feb 10 22:38:44 2015 +0100
opiekey (contrib): Fix serious (?) [-Wsizeof-pointer-memaccess]
On a password verification function of opiekey, the amount of bytes
allocated to a secret was 4 bytes of i386 and 8 bytes of x86-64. Memset
was using the size of the pointer to allocate memory.
Change 3 instances of this to size OPIE_SECRET_MAX + 1 to fix it.
FYI this vendor branch is like 16 years old...
Summary of changes:
contrib/opie/opiekey.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5f1ce051ad92f90610afb9534cd26ba1ab6b7086
--
DragonFly BSD source repository
More information about the Commits
mailing list