Commit be18f268 by Maarten L. Hekkelman

Avoid heap buffer overflow

parent 6a245bf4
Version 4.0.6
- Prevent heap buffer overflow writing annotated mmCIF file.
Version 4.0.5 Version 4.0.5
- The options for loading custom dictionary files and the like are now - The options for loading custom dictionary files and the like are now
visible in the help again. visible in the help again.
......
...@@ -343,14 +343,14 @@ void annotateDSSP(mmcif::Structure& structure, const mmcif::DSSP& dssp, bool wri ...@@ -343,14 +343,14 @@ void annotateDSSP(mmcif::Structure& structure, const mmcif::DSSP& dssp, bool wri
st = t; st = t;
} }
if (stop)
break;
if (lastSS != t->ss()) if (lastSS != t->ss())
{ {
st = t; st = t;
lastSS = t->ss(); lastSS = t->ss();
} }
if (stop)
break;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment