forked from osmocom/wireshark
Don't assert that the key to a wmem tree operation is short. If XMPP wants to
use a 1500-byte string as a key, so be it. It will be slow, but at least it will work. Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9078 svn path=/trunk/; revision=52261
This commit is contained in:
parent
dcbc510a4c
commit
dc0b7253e4
|
@ -559,8 +559,6 @@ wmem_tree_insert32_array(wmem_tree_t *tree, wmem_tree_key_t *key, void *data)
|
|||
guint32 i, insert_key32 = 0;
|
||||
|
||||
for (cur_key = key; cur_key->length > 0; cur_key++) {
|
||||
g_assert(cur_key->length < 100);
|
||||
|
||||
for (i = 0; i < cur_key->length; i++) {
|
||||
/* Insert using the previous key32 */
|
||||
if (!insert_tree) {
|
||||
|
@ -591,8 +589,6 @@ wmem_tree_lookup32_array_helper(wmem_tree_t *tree, wmem_tree_key_t *key,
|
|||
}
|
||||
|
||||
for (cur_key = key; cur_key->length > 0; cur_key++) {
|
||||
g_assert(cur_key->length < 100);
|
||||
|
||||
for (i = 0; i < cur_key->length; i++) {
|
||||
/* Lookup using the previous key32 */
|
||||
if (!lookup_tree) {
|
||||
|
|
Loading…
Reference in New Issue