[Users] Buffer overflow with Xlog

Daniel-Constantin Mierla daniel at voice-system.ro
Mon Nov 7 21:44:36 CET 2005


Hello Jose,

the problem resided in how the fixup functions were called for switch 
statement. Please take the latest cvs version for your used version (see 
http://openser.org/index.php#download) and let me know if it works.

Thanks,
Daniel


On 11/07/05 15:17, Jose Maria Gonzalez wrote:
> Here is the segment of config file where the errors occur:
>
>         switch(retcode){
>                 case 1:
>                         xlog("L_ERR","Has been selected the 1 index");
>                         route(1);
>                         break;
>                 case 2:
>                         xlog("L_ERR","Has been selected the 2 index");
>                         route(2);
>                         break;
>         }
>         xlog("L_ERR","Destination uri [$du]");
>
> The error of buffer overflow appears only inside the switch routine.
> The last log, Destination uri, appears without any problem.
> It's quite extrange.
>
>
> 2005/11/7, Bogdan-Andrei Iancu <bogdan at voice-system.ro>:
>   
>> Hi Jose,
>>
>> seams to be a problem is xlog. Does the error appear only in case + xlog
>> configuration, or that xlog call, whatever his place is, produces the error?
>>
>> regards,
>> bogdan
>>
>> Jose Maria Gonzalez wrote:
>>
>>     
>>> I have installed openser v1.0 and it is working perfectly. But I have
>>> a problem with the xlog module. Many times I've got the following
>>> error:
>>>
>>> Nov  7 11:28:34 localhost openser[1736]: xl_printf: buffer overflow --
>>> increase the buffer size...
>>>
>>> The line that produces this error is this (it is inside a case stament):
>>> xlog("L_ERR","Has been selected the 1 index");
>>>
>>> I have tried to increase the buffer size in the following form:
>>> modparam("xlog","buf_size",8192)
>>>
>>> No matters the size that I put on the line buf_size, I always get the
>>> same error.
>>> I thing that a buffer size of 8kb should be enough for this log
>>> message, isn't it?
>>>
>>> Thanks.
>>>
>>> --
>>> Salu2:
>>> ***************************************
>>> José María González
>>> ***************************************
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at openser.org
>>> http://openser.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>>
>>>       
>>     
>
>
> --
> Salu2:
> ***************************************
> José María González
> ***************************************
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
>   




More information about the sr-users mailing list