add a check for stupids

SVN revision: 71851
This commit is contained in:
Mike Blumenkrantz 2012-06-08 13:48:05 +00:00
parent 5590d14689
commit 017a7d50eb
2 changed files with 4 additions and 0 deletions

View File

@ -293,3 +293,6 @@
Fix bug in the XML parser when a tag was in a comment or a
cdata
2012-06-08 Mike Blumenkrantz
* Prevent negative max_token count for eina_str_split functions

View File

@ -76,6 +76,7 @@ eina_str_split_full_helper(const char *str,
size_t len, dlen;
unsigned int tokens;
EINA_SAFETY_ON_TRUE_RETURN_VAL(max_tokens < 1, NULL);
dlen = strlen(delim);
if (dlen == 0)
{