Adds sanity check for inputs

This commit is contained in:
Felipe Zimmerle
2015-08-10 00:08:02 -03:00
parent 5cc38abfe8
commit ce0d81c0da
5 changed files with 81 additions and 50 deletions

View File

@@ -231,7 +231,7 @@ class Assay {
std::string* resolve_variable_first(const std::string collectionName,
std::string var);
void store_variable(std::string, const std::string &value);
void store_variable(std::string, std::string value);
bool update_variable_first(std::string var, const std::string &value);
void delete_variable(std::string key);

View File

@@ -50,7 +50,8 @@ class Driver;
class Rules : public RulesProperties {
public:
Rules()
: RulesProperties(NULL),
: debugLog(NULL),
RulesProperties(NULL),
unicode_codepage(0) {
unicode_map_table = reinterpret_cast<int *>(
malloc(sizeof(int)*65536));
@@ -58,7 +59,8 @@ class Rules : public RulesProperties {
}
explicit Rules(DebugLog *customLog)
: unicode_codepage(0),
: debugLog(NULL),
unicode_codepage(0),
RulesProperties(customLog) {
unicode_map_table = reinterpret_cast<int *>(
malloc(sizeof(int)*65536));