Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ai
sso
Commits
36650db9
Commit
36650db9
authored
Feb 18, 2018
by
ale
Browse files
Zero-terminate value returned by modsso_session_deserialize
parent
15e7349b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/mod_sso/session.c
View file @
36650db9
...
...
@@ -111,6 +111,8 @@ int modsso_session_deserialize(apr_pool_t *pool, const unsigned char *key,
(
const
unsigned
char
*
)
enc_value
,
i
)
!=
0
)
{
return
-
1
;
}
// Zero-terminate value, as we'll be using it as a string later.
(
*
value
)[
*
value_len
]
=
'\0'
;
signature_len
=
strlen
(
enc_signature
);
signature
=
apr_palloc
(
pool
,
signature_len
+
1
);
...
...
src/sso/base64.c
View file @
36650db9
...
...
@@ -121,6 +121,8 @@ int sso_base64_encode(unsigned char *dst, size_t *dlen,
* Decode a base64-formatted buffer.
*
* Supports both standard and "web-safe" encodings.
*
* The destination buffer is *not* zero-terminated.
*/
int
sso_base64_decode
(
unsigned
char
*
dst
,
size_t
*
dlen
,
const
unsigned
char
*
src
,
size_t
slen
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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