Wireshark-commits: [Wireshark-commits] master-2.6 c0a31ae: Fix handling of headers in body part.

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Wed, 29 May 2019 18:08:17 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=c0a31ae75a50ff89fc3cc6c3bea4decfc4c8f264
Submitter: "Guy Harris <guy@xxxxxxxxxxxx>"
Changed: branch: master-2.6
Repository: wireshark

Commits:

c0a31ae by Guy Harris (guy@xxxxxxxxxxxx):

    Fix handling of headers in body part.
    
    Check whether the unfolded-and-compacted header has only printable
    characters, not whether the full header does - the full header may
    include LWSP, which includes HT, CR, and LF, none of which are
    considered "printable", so valid headers were being treated as not being
    headers, causing mis-dissection of some packets.
    
    We don't need to split the header name from the value -
    is_known_multipart_header() stops comparison at the end of the header
    name.
    
    Change-Id: I96e4ac0b69df726b984ee7faeea19eda18be223c
    Reviewed-on: https://code.wireshark.org/review/33417
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    Petri-Dish: Guy Harris <guy@xxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    (cherry picked from commit 78a106dc2a5516b9b9cf42cf973d990828cac54e)
    Reviewed-on: https://code.wireshark.org/review/33419
    

Actions performed:

    from  d8e91a7   Clean up indentation.
     add  c0a31ae   Fix handling of headers in body part.


Summary of changes:
 epan/dissectors/packet-multipart.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)