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
poppler
poppler
Commits
1a49822d
Commit
1a49822d
authored
Dec 18, 2018
by
Adam Reichold
Browse files
Copy the string contents, not the string object, into the key buffer. Closes #690
parent
641312cb
Pipeline
#12910
passed with stage
in 14 minutes and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
poppler/Decrypt.cc
View file @
1a49822d
...
...
@@ -1717,7 +1717,7 @@ static void revision6Hash(const GooString *inputPassword, unsigned char *K, cons
sequenceLength
=
inputPasswordLength
+
KLength
+
userKeyLength
;
totalLength
=
64
*
sequenceLength
;
//a.make the string K1
memcpy
(
K1
,
inputPassword
,
inputPasswordLength
);
memcpy
(
K1
,
inputPassword
->
c_str
()
,
inputPasswordLength
);
memcpy
(
K1
+
inputPasswordLength
,
K
,
KLength
);
memcpy
(
K1
+
inputPasswordLength
+
KLength
,
userKey
,
userKeyLength
);
for
(
int
i
=
1
;
i
<
64
;
++
i
)
{
...
...
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