Bug: splitcomb - memory overwrite

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

 



Hi Peter,

Just applied the fix to SVN trunk and the ticket number is #1249.

Thanks for the report and fix!

BR,
nanang


On Tue, Apr 12, 2011 at 5:05 PM, Peter Lukac <p.lukac at emtest.sk> wrote:
> Hello everyone,
>
> I found bug in splitcomb.c module.
> At line 535:
>
> 534 ? ? ? /* Generate zero frame. */
> 535 ? ? ? pjmedia_zero_samples(sc->put_buf,
> 536 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? this_port->info.samples_per_frame);
>
> method have invalid buffer size. Should be :
>
> 534 ? ? ? /* Generate zero frame. */
> 535 ? ? ? pjmedia_zero_samples(sc->put_buf,
> 536 ? ? ? ? ? ? ? ? ? ? ? ? ? port->info.samples_per_frame);
>
> because ?this_port->info.samples_per_frame is size for all channels not for
> one.
>
>
> regards
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>



[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