Skip to content

Commit

Permalink
core: parser/sdp - cast to unsigned for left shifting
Browse files Browse the repository at this point in the history
(cherry picked from commit c1ec385)
(cherry picked from commit f387209)
  • Loading branch information
miconda committed Mar 2, 2022
1 parent 94a7f11 commit 6b5be83
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/parser/sdp/sdp_helpr_funcs.c
Expand Up @@ -52,7 +52,10 @@ static struct {


#define READ(val) \
(*(val + 0) + (*(val + 1) << 8) + (*(val + 2) << 16) + (*(val + 3) << 24))
((unsigned int)(*(val + 0)) \
+ ((unsigned int)(*(val + 1)) << 8) \
+ ((unsigned int)(*(val + 2)) << 16) \
+ ((unsigned int)(*(val + 3)) << 24))
#define advance(_ptr,_n,_str,_error) \
do{\
if ((_ptr)+(_n)>(_str).s+(_str).len)\
Expand Down

0 comments on commit 6b5be83

Please sign in to comment.