[Asterisk-code-review] main/sdp srtp.c: allow SDP crypto tag to be up to 9 digits (asterisk[13])
Corey Edwards
asteriskteam at digium.com
Wed May 20 09:00:31 CDT 2015
Corey Edwards has uploaded a new change for review.
https://gerrit.asterisk.org/491
Change subject: main/sdp_srtp.c: allow SDP crypto tag to be up to 9 digits
......................................................................
main/sdp_srtp.c: allow SDP crypto tag to be up to 9 digits
ASTERISK-24887 #close
Reported by: Makoto Dei
Tested by: tensai
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/91/491/1
diff --git a/main/sdp_srtp.c b/main/sdp_srtp.c
index fee3fea..2c49fd2 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/491
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6a96f572adb17f76b3acafe503a01c48eb5dd9bf
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Corey Edwards <tensai at zmonkey.org>
More information about the asterisk-code-review
mailing list