fix linux build

This commit is contained in:
Enno Rehling 2016-02-13 13:56:49 +01:00
parent 9c7dd13ac9
commit 9c10cc6b16
4 changed files with 17 additions and 1 deletions

View File

@ -1,3 +1,13 @@
{
strcpy.S:197
Memcheck:Cond
obj:/lib/x86_64-linux-gnu/libc-2.13.so
}
{
strcpy.S:1106
Memcheck:Value8
obj:/lib/x86_64-linux-gnu/libc-2.13.so
}
{
stpncpy sse3
Memcheck:Cond

View File

@ -1,3 +1,8 @@
{
stpncpy in strcpy-sse2-unaligned.S:1659
Memcheck:Value8
fun:__stpncpy_sse2_unaligned
}
# old zlib version
{
zlib1g-dev-1:1.2.3.4.dfsg

View File

@ -75,7 +75,7 @@ static const char * password_hash_i(const char * passwd, const char *input, int
salt_len = strlen(input);
}
assert(salt_len < MAXSALTLEN);
stpncpy(salt, input, salt_len);
memcpy(salt, input, salt_len);
salt[salt_len] = 0;
} else {
input = password_gensalt(salt, sizeof(salt));

View File

@ -1,6 +1,7 @@
#include <platform.h>
#include <CuTest.h>
#include "password.h"
#include <string.h>
static void test_passwords(CuTest *tc) {
const char *hash, *expect;