mirror of
https://github.com/PDB-REDO/libcifpp.git
synced 2026-06-04 13:54:25 +08:00
betere check op overflow van waarden in REMARK 3
git-svn-id: svn+ssh://gitlab/srv/svn-repos/pdb-redo/trunk@185 a1961a4f-ab94-4bcc-80e8-33b5a54de466
This commit is contained in:
@@ -1020,7 +1020,7 @@ void Remark3Parser::storeCapture(const char* category, initializer_list<const ch
|
||||
string value = mM[capture].str();
|
||||
ba::trim(value);
|
||||
|
||||
if (iequals(value, "NULL") or iequals(value, "NONE") or iequals(value, "******"))
|
||||
if (iequals(value, "NULL") or iequals(value, "NONE") or iequals(value, string(value.length(), '*')))
|
||||
continue;
|
||||
|
||||
if (VERBOSE >= 3)
|
||||
@@ -1120,7 +1120,7 @@ void Remark3Parser::storeRefineLsRestr(const char* type, initializer_list<const
|
||||
|
||||
string value = mM[capture].str();
|
||||
ba::trim(value);
|
||||
if (value.empty() or iequals(value, "NULL") or iequals(value, "******"))
|
||||
if (value.empty() or iequals(value, "NULL") or iequals(value, string(value.length(), '*')))
|
||||
continue;
|
||||
|
||||
if (not r)
|
||||
@@ -1151,7 +1151,7 @@ void Remark3Parser::updateRefineLsRestr(const char* type, initializer_list<const
|
||||
|
||||
string value = mM[capture].str();
|
||||
ba::trim(value);
|
||||
if (iequals(value, "NULL") or iequals(value, "******"))
|
||||
if (iequals(value, "NULL") or iequals(value, string(value.length(), '*')))
|
||||
value.clear();
|
||||
|
||||
r[item] = value;
|
||||
|
||||
Reference in New Issue
Block a user