meetecho / janus-gateway

Janus WebRTC Server
https://janus.conf.meetecho.com
GNU General Public License v3.0
8k stars 2.45k forks source link

heap-use-after-free ??:0 __interceptor_strlen #1613

Closed lcarneirofreitas closed 5 years ago

lcarneirofreitas commented 5 years ago

Hi,

We have been using Janus as a SIP Gateway to Asterisk for about 5 months and it's been a superb experience. However, lately, we have updated our janus-gateway version from the commit 304a983 to the d0fecb0.

With the version d0fecb0, the Janus crashes when some SIP invites reach the server (asterisk 11.11 chan_sip)

We, fortunately have the stack trace of the error below:

https://pastebin.com/kRUeTVrV

Thanks

lminiero commented 5 years ago

Ah, yes, looks like we're freeing caller_text but trying to use it again when pushing the event to event handlers (which I guess you've enabled, correct?). I'll push a fix shortly.

lminiero commented 5 years ago

The above commit should fix it, please let me know if that's not the case.

lcarneirofreitas commented 5 years ago

Great

I have updated, so far no error reported.

Thank you