summaryrefslogtreecommitdiff
path: root/res/res_pjsip/include/res_pjsip_private.h
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2016-04-14 07:23:54 -0500
committerMark Michelson <mmichelson@digium.com>2016-04-14 07:23:54 -0500
commit7b8b6e2e4faa21a3941bc6c71ad1bd94c40e53d1 (patch)
tree0052bd6cbe641ed84622f17a3e36cbbc4e366ebe /res/res_pjsip/include/res_pjsip_private.h
parentfddec0c2664a65b5ffa18894af60bf4d81a7dafc (diff)
AST-2016-004: Fix crash on REGISTER with long URI.
Due to some ignored return values, Asterisk could crash if processing an incoming REGISTER whose contact URI was above a certain length. ASTERISK-25707 #close Reported by George Joseph Patches: 0001-res_pjsip-Validate-that-URIs-don-t-exceed-pjproject-.patch AST-2016-004 Change-Id: I3ea7cee16f29c8088794de3085ca7523c1c4833d
Diffstat (limited to 'res/res_pjsip/include/res_pjsip_private.h')
-rw-r--r--res/res_pjsip/include/res_pjsip_private.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/res/res_pjsip/include/res_pjsip_private.h b/res/res_pjsip/include/res_pjsip_private.h
index 2cc9feacd..24b8edfbc 100644
--- a/res/res_pjsip/include/res_pjsip_private.h
+++ b/res/res_pjsip/include/res_pjsip_private.h
@@ -306,4 +306,11 @@ int internal_sip_unregister_endpoint_formatter(struct ast_sip_endpoint_formatter
* \brief Finds or creates contact_status for a contact
*/
struct ast_sip_contact_status *ast_res_pjsip_find_or_create_contact_status(const struct ast_sip_contact *contact);
+
+/*!
+ * \internal
+ * \brief Validate that the uri meets pjproject length restrictions
+ */
+int ast_sip_validate_uri_length(const char *uri);
+
#endif /* RES_PJSIP_PRIVATE_H_ */