Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
a070e6c0
Commit
a070e6c0
authored
Apr 06, 2006
by
Hallvard Furuseth
Browse files
Avoid sprintf buffer overrun if huge hostname
parent
daec2feb
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slurpd/st.c
View file @
a070e6c0
...
...
@@ -246,10 +246,10 @@ St_read(
}
if
(
found
)
{
char
tbuf
[
255
];
sprintf
(
tbuf
,
"%s:%s (timestamp %s.%s)"
,
hostname
,
port
,
timestamp
,
seq
);
sprintf
(
tbuf
,
"%s.%s"
,
timestamp
,
seq
);
Debug
(
LDAP_DEBUG_ARGS
,
"Retrieved state information for %s
\n
"
,
tbuf
,
0
,
0
);
"Retrieved state information for %s:%s (timestamp %s)
\n
"
,
hostname
,
port
,
tbuf
);
}
else
{
Debug
(
LDAP_DEBUG_ANY
,
"Warning: saved state for %s:%s, not a known replica
\n
"
,
...
...
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