Re: iPhone MWI EXC_BAD_ACCESS

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

 



Afaik body is NULL when the MWI subscription is running out. So you need to check and handle that case before accessing ...body->data.

Sebastian.


"pjsip" <pjsip-bounces@xxxxxxxxxxxxxxx> schrieb am 20.12.2017 15:44:11:

> Von: Jonathan Simmonds <jonathan@atech.media>

> An: "pjsip@xxxxxxxxxxxxxxx" <pjsip@xxxxxxxxxxxxxxx>
> Datum: 20.12.2017 15:45
> Betreff: [pjsip] iPhone MWI EXC_BAD_ACCESS
> Gesendet von: "pjsip" <pjsip-bounces@xxxxxxxxxxxxxxx>
>
> Hi,

>  
> In my method for processing MWI information I do the following:
>  
> void *messageBuffer = mwi_info.rdata->msg_info.msg->body->data;
>  
> Today I received a crash report detailing an EXC_BAD_ACCESS caused
> by “attempting to dereference garbage pointer”.

>  
> What could have potentially caused this?  If I can’t do anything to
> stop it then what can I do to handle it?

>  
> Thanks,
>  
> Jonathan
>
>
> Jonathan Simmonds
> Software Engineer
>
> tel. 01202 901222 email. jonathan@atech.media web.
https://atech.media
>
> This e-mail has been sent by aTech Media Limited (or one of its
> assoicated group companys, Dial 9 Communications Limited or Viaduct
> Hosting Limited). Its contents are confidential therefore if you
> have received this message in error, we would appreciate it if you
> could let us know and delete the message. aTech Media Limited is a
> UK limited company, registration number 5523199. Dial 9
> Communications Limited is a UK limited company, registration number
> 7740921. Viaduct Hosting Limited is a UK limited company,
> registration number 8514362. All companies are registered at Unit 9
> Winchester Place, North Street, Poole, Dorset, BH15 1NX.
> _______________________________________________
> Visit our blog:
http://blog.pjsip.org
>
> pjsip mailing list
> pjsip@xxxxxxxxxxxxxxx
>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
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