Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Feb 28, 2024
1 parent 8781295 commit e8b1295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/cfg/std.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,7 @@ void bufferAccessOutOfBounds_std_ofstream_write(std::ofstream &os, const char* s
(void)os.write(s,n);
}

// cppcheck-suppress constParameterReference // TODO: FP
void bufferAccessOutOfBounds_std_ifstream_get(std::ifstream& in, std::streambuf& sb)
{
char cBuf[10];
Expand All @@ -550,7 +551,6 @@ void bufferAccessOutOfBounds_std_ifstream_get(std::ifstream& in, std::streambuf&
// cppcheck-suppress bufferAccessOutOfBounds
in.getline(cBuf, 100, 'a');

// cppcheck-suppress constParameterReference // TODO: FP
in.get(sb, 'a');

in.close();
Expand Down

0 comments on commit e8b1295

Please sign in to comment.