Divide by Zero Error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  

Benny,

The following code in the function pjmedia_silence_det_set_params(...)
gave a divide by zero error:

    sd->min_signal_cnt = min_signal / sd->ptime;

    sd->min_silence_cnt = min_silence / sd->ptime;

    sd->recalc_cnt = recalc_time / sd->ptime;

 

I was experiencing other errors, but this code should be protected
against error conditions and should check the value of sd->ptime for
zero before performing the division operation.

Regards,

Jim Gomes
Senior Software Engineer
Gate Technologies
Tideworks Technology, Inc.
(206) 382-2197

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080222/c10435c1/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 2743 bytes
Desc: image001.jpg
Url : http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080222/c10435c1/attachment.jpe 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux