Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 697f601

Browse files
Artyom IvanovAlexPeshkoff
Artyom Ivanov
authored andcommitted
fix(config): Prevent printf injection in replication.conf
1 parent 1de2fb7 commit 697f601

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/jrd/replication/Config.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ namespace
8181

8282
void configError(const string& type, const string& key, const string& value)
8383
{
84-
string msg;
85-
msg.printf("%s specifies %s: %s", key.c_str(), type.c_str(), value.c_str());
86-
raiseError(msg.c_str());
84+
raiseError("%s specifies %s: %s", key.c_str(), type.c_str(), value.c_str());
8785
}
8886

8987
void checkAccess(const PathName& path, const string& key)

0 commit comments

Comments
 (0)