Hello!
char ** UdmNormalizeWord (char *word)
{
...
char **forms, **cur;
...
forms=(char **)malloc(128*sizeof(char **));
*(cur=forms) = NULL;
...
Later it many times do:
*cur=strdup(newword);
cur++;*cur=NULL;
And no any checks if *cur have not ran out of forms arr
Hello!
OK. I have changed it from 128 to 512.
I think that will be enough in any case :-)
We don't want to add any checking because this
place is executed for every word and additional
code will slow down indexer a bit.
Thanks for noticing and reporting.
Regards.
Danil Lavrentyuk wrote:
>
> H