forked from github/server
fix linux build
This commit is contained in:
parent
9c7dd13ac9
commit
9c10cc6b16
4 changed files with 17 additions and 1 deletions
|
@ -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
|
stpncpy sse3
|
||||||
Memcheck:Cond
|
Memcheck:Cond
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
{
|
||||||
|
stpncpy in strcpy-sse2-unaligned.S:1659
|
||||||
|
Memcheck:Value8
|
||||||
|
fun:__stpncpy_sse2_unaligned
|
||||||
|
}
|
||||||
# old zlib version
|
# old zlib version
|
||||||
{
|
{
|
||||||
zlib1g-dev-1:1.2.3.4.dfsg
|
zlib1g-dev-1:1.2.3.4.dfsg
|
||||||
|
|
|
@ -75,7 +75,7 @@ static const char * password_hash_i(const char * passwd, const char *input, int
|
||||||
salt_len = strlen(input);
|
salt_len = strlen(input);
|
||||||
}
|
}
|
||||||
assert(salt_len < MAXSALTLEN);
|
assert(salt_len < MAXSALTLEN);
|
||||||
stpncpy(salt, input, salt_len);
|
memcpy(salt, input, salt_len);
|
||||||
salt[salt_len] = 0;
|
salt[salt_len] = 0;
|
||||||
} else {
|
} else {
|
||||||
input = password_gensalt(salt, sizeof(salt));
|
input = password_gensalt(salt, sizeof(salt));
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#include <platform.h>
|
#include <platform.h>
|
||||||
#include <CuTest.h>
|
#include <CuTest.h>
|
||||||
#include "password.h"
|
#include "password.h"
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
static void test_passwords(CuTest *tc) {
|
static void test_passwords(CuTest *tc) {
|
||||||
const char *hash, *expect;
|
const char *hash, *expect;
|
||||||
|
|
Loading…
Reference in a new issue