Advertisement
Guest User

Untitled

a guest
Oct 15th, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.44 KB | None | 0 0
  1. diff --git a/src/htsmsg_binary.c b/src/htsmsg_binary.c
  2. index d442c243e..4494e2df6 100644
  3. --- a/src/htsmsg_binary.c
  4. +++ b/src/htsmsg_binary.c
  5. @@ -55,6 +55,7 @@ htsmsg_binary_des0(htsmsg_t *msg, const uint8_t *buf, size_t len)
  6.        return -1;
  7.  
  8.      nlen = namelen ? namelen + 1 : 1;
  9. +    nlen = (nlen + sizeof(int) - 1) & ~(sizeof(int) - 1);
  10.      tlen = sizeof(htsmsg_field_t) + nlen;
  11.      if (type == HMF_STR) {
  12.        tlen += datalen + 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement