Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Unified Diff: srtp/srtp/srtp.c

Issue 1098043003: Update libsrtp to 1.5.2 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libsrtp@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « srtp/doc/Makefile ('k') | srtp/test/rdbx_driver.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: srtp/srtp/srtp.c
diff --git a/srtp/srtp/srtp.c b/srtp/srtp/srtp.c
index 1b3c001d1ba6bc3928681f6ab56c65f659bdae9c..e7c25a1e19a84d5193bfda999880b0b371179127 100644
--- a/srtp/srtp/srtp.c
+++ b/srtp/srtp/srtp.c
@@ -1090,7 +1090,7 @@ srtp_unprotect_aead (srtp_ctx_t *ctx, srtp_stream_ctx_t *stream, int delta,
* the tag size. It must always be at least as large
* as the tag length.
*/
- if (enc_octet_len < tag_len) {
+ if (enc_octet_len < (unsigned int) tag_len) {
return err_status_cipher_fail;
}
@@ -2878,7 +2878,7 @@ srtp_unprotect_rtcp(srtp_t ctx, void *srtcp_hdr, int *pkt_octet_len) {
/* check the packet length - it must contain at least a full RTCP
header, an auth tag (if applicable), and the SRTCP encrypted flag
and 31-bit index value */
- if (*pkt_octet_len < (octets_in_rtcp_header + tag_len + sizeof(srtcp_trailer_t))) {
+ if (*pkt_octet_len < (int) (octets_in_rtcp_header + tag_len + sizeof(srtcp_trailer_t))) {
return err_status_bad_param;
}
« no previous file with comments | « srtp/doc/Makefile ('k') | srtp/test/rdbx_driver.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698