Andrew Aksyonoff wrote:
> 
> UdmSearch version: 3.1.16
> Platform:
> OS:
> Database:
> Statistics:
> 
> I\'ve been experiencing core dumps with search.cgi in cache mode. GDB backtrace 
>shown that the problem was in line 911 of cache.c, where the attempt was made to 
>dereference a null pointer \"table\". A quick investigation shown that it\'s 
>allocated properly in line 895, but gets zeroed after this call in line 898:
> 
>     qsort(&table,(size_t)header.ntables,sizeof(UDM_CACHETABLE),cmptable);
> 
> It seemed to me that sorting a certain internal table was a good idea but sorting 
>routine stack was definitely not. :-) So, I changed &table to table and all the 
>crashes disappeared.
> 



This is a bug. We accepted a patch recently 
and didn't check it carefully :-(

It should be 

   qsort(table,...), 

not 

   qsort(&table,...)


Thanks for reporting!
___________________________________________
If you want to unsubscribe send "unsubscribe general"
to [EMAIL PROTECTED]

Reply via email to