Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
067c0c38
Commit
067c0c38
authored
Nov 06, 2014
by
Evan Hunt
Browse files
[master] s/mempcy/memmove/
parent
8f0cf84b
Changes
2
Hide whitespace changes
Inline
Side-by-side
bin/named/server.c
View file @
067c0c38
...
...
@@ -9411,7 +9411,7 @@ generate_salt(unsigned char *salt, size_t saltlen) {
for
(
i
=
0
;
i
<
n
;
i
++
)
isc_random_get
(
&
rnd
.
rnd32
[
i
]);
mem
cpy
(
salt
,
rnd
.
rnd
,
saltlen
);
mem
move
(
salt
,
rnd
.
rnd
,
saltlen
);
r
.
base
=
rnd
.
rnd
;
r
.
length
=
(
unsigned
int
)
saltlen
;
...
...
lib/isc/random.c
View file @
067c0c38
...
...
@@ -311,8 +311,8 @@ chacha_getuint16(isc_rng_t *rng) {
if
(
rng
->
have
<
sizeof
(
val
))
chacha_rekey
(
rng
,
NULL
,
0
);
mem
cpy
(
&
val
,
rng
->
buffer
+
CHACHA_BUFFERSIZE
-
rng
->
have
,
sizeof
(
val
));
mem
move
(
&
val
,
rng
->
buffer
+
CHACHA_BUFFERSIZE
-
rng
->
have
,
sizeof
(
val
));
/* Clear the copied region. */
memset
(
rng
->
buffer
+
CHACHA_BUFFERSIZE
-
rng
->
have
,
0
,
sizeof
(
val
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment