Fixed minor issue with sm_trie_add where memory was being read beyond the allocated boundaries
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401094
This commit is contained in:
parent
411f7693c3
commit
5b8ffc08eb
@ -499,7 +499,7 @@ bool sm_trie_add(Trie *trie, const char *key, void *value, bool replace_allowed)
|
||||
|
||||
assert(incoming_limit > 0 && incoming_limit <= 255);
|
||||
|
||||
for (unsigned int i=1; i<=255; i++,cur++)
|
||||
for (unsigned int i=1; i<=incoming_limit; i++,cur++)
|
||||
{
|
||||
if (cur->mode == Node_Arc || cur->mode == Node_Term)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user