Commit: 504a0cf46ad89cab8005ce9cffb22e41048f6a30
Parent: e01141697ab2ec6027eaec67360f411194d7e4e9
Author: Anderson Lizardo <anderson.lizardo@openbossa.org>
Committer: Marcel Holtmann <marcel@holtmann.org>
Date: 2013-01-09 04:24:53
Tree: e58eab2188c0fe2fa2d2aa6604aa589457beec35

lib: Fix SDP_TEXT_STR16/SDP_URL_STR16 parsing sdp_extract_attr() uses the "size" parameter to return the number of bytes consumed when parsing SDP Data Elements. This size is used to advance a buffer pointer to parse next element. This size was being incorrectly calculated for SDP_{TEXT,URL}_STR16 in extract_str(), where the string length was added twice. The string length is already added later in the function for {TEXT,URL}_STR{8,16} by this statement: *len += n;

Diffstat

M lib/sdp.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)

View Full Diff | Patch