Skip to content

Commit

Permalink
use safe_strcat() to prevent buffer overflow
Browse files Browse the repository at this point in the history
fixes CID 27856 found by Coverity
  • Loading branch information
ChristianBeer committed Oct 22, 2015
1 parent 19fcfd8 commit 54aae7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sched/file_deleter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ bool do_pass(bool retry_error) {

if (xml_doc_like) {
strcat(clause, " and xml_doc like '");
strcat(clause, xml_doc_like);
safe_strcat(clause, xml_doc_like);
strcat(clause, "'");
}
sprintf(buf,
Expand Down

0 comments on commit 54aae7f

Please sign in to comment.