Commit 05ec5360 by maarten

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
parent b0272a1c
...@@ -1020,7 +1020,7 @@ void Remark3Parser::storeCapture(const char* category, initializer_list<const ch ...@@ -1020,7 +1020,7 @@ void Remark3Parser::storeCapture(const char* category, initializer_list<const ch
string value = mM[capture].str(); string value = mM[capture].str();
ba::trim(value); 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; continue;
if (VERBOSE >= 3) if (VERBOSE >= 3)
...@@ -1120,7 +1120,7 @@ void Remark3Parser::storeRefineLsRestr(const char* type, initializer_list<const ...@@ -1120,7 +1120,7 @@ void Remark3Parser::storeRefineLsRestr(const char* type, initializer_list<const
string value = mM[capture].str(); string value = mM[capture].str();
ba::trim(value); 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; continue;
if (not r) if (not r)
...@@ -1151,7 +1151,7 @@ void Remark3Parser::updateRefineLsRestr(const char* type, initializer_list<const ...@@ -1151,7 +1151,7 @@ void Remark3Parser::updateRefineLsRestr(const char* type, initializer_list<const
string value = mM[capture].str(); string value = mM[capture].str();
ba::trim(value); ba::trim(value);
if (iequals(value, "NULL") or iequals(value, "******")) if (iequals(value, "NULL") or iequals(value, string(value.length(), '*')))
value.clear(); value.clear();
r[item] = value; r[item] = value;
......
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