mirror of https://github.com/BOINC/boinc.git
use safe_strcat to prevent buffer overflow
fixes CID 27965 found by Coverity
This commit is contained in:
parent
2b258b48f7
commit
69cb23cf60
|
@ -774,7 +774,7 @@ int main(int argc, char** argv) {
|
|||
exit(1);
|
||||
}
|
||||
strcat(mod_select_clause, " and workunit.appid in (");
|
||||
strncat(mod_select_clause, argv[i], sizeof(mod_select_clause)-25);
|
||||
safe_strcat(mod_select_clause, argv[i]);
|
||||
strcat(mod_select_clause, ")");
|
||||
} else if (is_arg(argv[i], "mod")) {
|
||||
if (!argv[i+1] || !argv[i+2]) {
|
||||
|
|
Loading…
Reference in New Issue