Skip to content

Commit

Permalink
fix stack buffer overflow error in Assembly::readPDB
Browse files Browse the repository at this point in the history
  • Loading branch information
Arpan3323 authored Nov 26, 2024
1 parent f2e59d6 commit 8277a85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/assembly.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ void Assembly::readPDB(std::string filename, bool use_segid_instead_of_chainid,
fh.seekg(0);

// Loop over all lines
while (fh.getline (line, 600))
while (fh.getline (line, 100))
{
// Only look at lines with an ATOM label
std::string record(line,0,6);
Expand Down

0 comments on commit 8277a85

Please sign in to comment.