Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 20, 2024
1 parent e1c36f4 commit ab0ba02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/8c_benchmark_ptl_parallel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ int parseArgs(int argc, char *argv[], TestInput &input)
{
if (argc == 2)
{
std::string filename = argv[1];
std::string filename = argv[1];
std::fstream infile;
infile.open(filename, std::ios::in);

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This argument to a file access function is derived from
user input (a command-line argument)
and then passed to std::basic_fstream<char, char_traits>::open(__s).
This argument to a file access function is derived from
user input (a command-line argument)
and then passed to std::basic_fstream<char, char_traits>::open(__s), which calls std::basic_filebuf<char, char_traits>::open(__s).
if (!infile.is_open())
Expand Down

0 comments on commit ab0ba02

Please sign in to comment.