Decompression failure for IPv4 stream with empty payload
Bug #803648 reported by
Didier Barvaux
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
rohc | Status tracked in Rohc-main | |||||
1.2.x |
Won't Fix
|
Medium
|
Didier Barvaux | |||
1.3.x |
Won't Fix
|
Medium
|
Didier Barvaux | |||
Rohc-main |
Fix Released
|
Medium
|
Didier Barvaux |
Bug Description
The attached PCAP file fails to be compressed then decompressed. The file contains a stream of IPv4 packets with empty payload. One of the packets is compressed as a ROHC UO-0 packet on one single byte (Add-CID is omitted because it is 0). This packet fails to be decompressed because the decompressor expects at least 2 bytes for the ROHC packet.
The 2-byte assumption is not correct in all cases and shall be removed. However additional checks shall be added for ROHC packets that are expected to be larger.
To post a comment you must log in.
Attach to the bug a capture with a IPv4/UDP stream with empty UDP payload. This new capture does not cause any bug in the library. It may be added to library tests to improve the code coverage.