Menu

#569 null pointer dereference in nhelper_funcs.c (Kamailio 1.5.0)

ver 1.5.x
closed-fixed
modules (357)
5
2009-04-29
2009-04-11
Anonymous
No

Null pointer dereference occurs frequently in nhelper_funcs.c, line 172 as msg->content_length is null.
Kamailio version 1.5.0.

Backtrace and contents of *msg attached.

Discussion

  • Nobody/Anonymous

    backtrace and content of *msg

     
  • Henning Westerholt

    null pointer check

     
  • Henning Westerholt

    Hi,

    thanks for the report. I've added a small patch against 1.5.0 that should check for the null-pointer condition you observed. Would be great if you could test if this fixes the problem for you.

    Henning

     
  • Henning Westerholt

    Do you was able to test the patch?

     
  • Nobody/Anonymous

    Yes, it helped. I used similar workaround before. Unfortunately some devices send headers without Content-length but now these don't make the daemon crash anymore. Thank you.

     
  • Henning Westerholt

    Ok, thank for the reply. I'll then commit this change to the 1.5 branch and master git tree.

     
  • Henning Westerholt

    • assigned_to: nobody --> henningw
    • status: open --> open-fixed
     
  • Henning Westerholt

    • status: open-fixed --> closed-fixed
     

Log in to post a comment.