From 8277a85dbec0861dee466873152e316188eabece Mon Sep 17 00:00:00 2001 From: Arpan <105904949+Arpan3323@users.noreply.github.com> Date: Mon, 25 Nov 2024 19:35:07 -0600 Subject: [PATCH] fix stack buffer overflow error in Assembly::readPDB --- src/assembly.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/assembly.cpp b/src/assembly.cpp index 5744cdaa6..270320df8 100644 --- a/src/assembly.cpp +++ b/src/assembly.cpp @@ -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);