[Asterisk-code-review] per RFC4568 9.1, tag can be 9 digit integer. see ASTERISK-24... (asterisk[master])
Corey Edwards
asteriskteam at digium.com
Tue May 19 13:03:56 CDT 2015
Corey Edwards has uploaded a new change for review.
https://gerrit.asterisk.org/484
Change subject: per RFC4568 9.1, tag can be 9 digit integer. see ASTERISK-24887.
......................................................................
per RFC4568 9.1, tag can be 9 digit integer. see ASTERISK-24887.
Change-Id: I6a96f572adb17f76b3acafe503a01c48eb5dd9bf
---
M main/sdp_srtp.c
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/84/484/1
diff --git a/main/sdp_srtp.c b/main/sdp_srtp.c
index 8c86f14..5d8047c 100644
--- a/main/sdp_srtp.c
+++ b/main/sdp_srtp.c
@@ -238,7 +238,8 @@
return -1;
}
- if (sscanf(tag, "%30d", &crypto->tag) != 1 || crypto->tag <= 0 || crypto->tag > 9) {
+ /* RFC4568 9.1 - tag is 1-9 digits, greater than zero */
+ if (sscanf(tag, "%30d", &crypto->tag) != 1 || crypto->tag <= 0 || crypto->tag > 999999999) {
ast_log(LOG_WARNING, "Unacceptable a=crypto tag: %s\n", tag);
return -1;
}
--
To view, visit https://gerrit.asterisk.org/484
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6a96f572adb17f76b3acafe503a01c48eb5dd9bf
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Corey Edwards <tensai at zmonkey.org>
More information about the asterisk-code-review
mailing list