[sr-dev] [kamailio/kamailio] sanity() test passes on invalid uri (#1289)

juha-h notifications at github.com
Sun Oct 29 12:39:58 CET 2017


K master sanity() test passes URI hostpart that contains ` (back quote) character and possibly other invalid hostpart characters:

Config:

modparam("sanity", "default_checks", 1024) /* URI checks */
modparam("sanity", "uri_checks", 3)  /* RURI, From */

    xlog("L_INFO", "Checking $ru\n");
    if (!sanity_check())
        xlog("L_INFO", "Check failed\n");
    else
        xlog("L_INFO", "Check passed\n");

Syslog:

Oct 27 17:17:38 lohi /usr/bin/sip-proxy[31946]: INFO: Checking sip:jh at te`st.fi
Oct 27 17:17:38 lohi /usr/bin/sip-proxy[31946]: INFO: Check passed

According to RFC3261:

hostname         =  *( domainlabel "." ) toplabel [ "." ]
domainlabel      =  alphanum
                    / alphanum *( alphanum / "-" ) alphanum

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1289
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20171029/7a4d00e4/attachment.html>


More information about the sr-dev mailing list