removed debug info about missing keys; added debug info about deserialization checking of string

This commit is contained in:
csoler 2015-08-05 20:51:34 +02:00
parent 311358bcda
commit 168eb45539
2 changed files with 7 additions and 0 deletions

View file

@ -602,6 +602,11 @@ bool GetTlvString(void *data, uint32_t size, uint32_t *offset,
in = std::string(strdata, strsize);
}
#ifdef TLV_BASE_DEBUG
if(type == TLV_TYPE_STR_MSG)
std::cerr << "Checking string \"" << in << "\"" << std::endl;
#endif
// Check for string content. We want to avoid possible lol bombs as soon as possible.
static const int number_of_suspiscious_strings = 4 ;