Project

General

Profile

Actions

Bug #8676

open
PA GL

sip/tcp: respect content-length

Bug #8676: sip/tcp: respect content-length

Added by Philippe Antoine 11 days ago. Updated 2 days ago.

Status:
Assigned
Priority:
Normal
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

Current logic is

    let (bi, _) = crlf.parse(phi)?;
    let body_offset = oi.len() - bi.len();
    let (i, body) = opt(sdp_parse_message).parse(bi)?;
    Ok((
        i,

But we should first take content-length to have enough input for SDP
and we we should have the remainder returned depend on wether this was SDP or not, rather just take the content-length, and have what starts after be the next request

Actions

Also available in: PDF Atom