aboutsummaryrefslogtreecommitdiff
path: root/src/common/simple_string_dictionary.h
diff options
context:
space:
mode:
authorrsesek@chromium.org <rsesek@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2013-10-01 21:32:16 +0000
committerrsesek@chromium.org <rsesek@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2013-10-01 21:32:16 +0000
commit0453082dbe8aa76e6c92c31d0bc16018fe274e13 (patch)
tree03bdd66cfa844147e97318e5676cb7eddf6400b3 /src/common/simple_string_dictionary.h
parentThis patch adds required change for stackwalker_mips_unittest to pass on 64bit (diff)
downloadbreakpad-0453082dbe8aa76e6c92c31d0bc16018fe274e13.tar.xz
In NonAllocatingMap, remove asserts around key/value length.
Since the data is stored using strncpy they are merely advisory in debug mode. BUG=https://code.google.com/p/chromium/issues/detail?id=298225 R=mark@chromium.org Review URL: https://breakpad.appspot.com/635002 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1219 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/common/simple_string_dictionary.h')
-rw-r--r--src/common/simple_string_dictionary.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/common/simple_string_dictionary.h b/src/common/simple_string_dictionary.h
index e241aff5..d2ab17fd 100644
--- a/src/common/simple_string_dictionary.h
+++ b/src/common/simple_string_dictionary.h
@@ -181,8 +181,6 @@ class NonAllocatingMap {
if (!entries_[i].is_active()) {
entry = &entries_[i];
- assert(strlen(key) < key_size);
-
strncpy(entry->key, key, key_size);
entry->key[key_size - 1] = '\0';
@@ -205,7 +203,6 @@ class NonAllocatingMap {
assert(count == 1);
#endif
- assert(strlen(value) < value_size);
strncpy(entry->value, value, value_size);
entry->value[value_size - 1] = '\0';
}