are there any valid use cases for a content-length being bigger than the rest of of the packet?
i have not tested the issue with kamailio 3.0.
sorry, i was not logged in while posting.
This should not happen, as both pairs (msg_buf,msg_len) and (body,body_len) are set internally. The issue with the nathelper was because the len was taken from content-lenght header, which can be wrong. The discussion ended in whether to auto-correct the content-lenght value or return 400 bad message. In 1.5 the fix to avoid crash was to return error to script, 400 can be sent by using sanity module.
so there's already a fix? i tried this on 1.5.4, and it crashed. maybe i made a mistake merging it to my branch. i am going to check this tomorrow.
i retried this with vanilla-kamailio 1.5.4 downloaded from kamailio.org and it crashs.