Permalink
Browse files

fix second crash

  • Loading branch information...
fippo committed Dec 11, 2018
1 parent 03e4e3d commit 0d676bf235f2cf58e739474e9f8f90fe921f02b9
Showing with 2 additions and 0 deletions.
  1. +2 −0 jrtcp.c
@@ -97,6 +97,8 @@ uint32_t janus_rtcp_get_remb(char *packet, int len) {
total -= length*4+4;
if(total <= 0)
break;
if ((length + 1) * sizeof(uint32_t) + sizeof(rtcp) > len)
break;
rtcp = (janus_rtcp_header *)((uint32_t*)rtcp + length + 1);
}
return 0;

0 comments on commit 0d676bf

Please sign in to comment.