Skip to content

Commit

Permalink
Merge pull request #1209 from Arpan3323/patch-3
Browse files Browse the repository at this point in the history
fix stack buffer overflow error in Assembly::readPDB as discussed in #1208.
  • Loading branch information
biochem-fan authored Nov 26, 2024
2 parents 0c429e1 + 8277a85 commit 27a67bb
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 27a67bb

Please sign in to comment.