Pathological compression crashes decoder
Bug #790910 reported by
Yves Pelletier
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libECBUFR |
Fix Committed
|
Medium
|
Unassigned |
Bug Description
A user has come across a BUFR message where compression was executed incorrectly such that NBINC > NBITS. That is, the effective bitwidth for a descriptor with compression "on" is greater than the default bitwidth for the descriptor (as specified in Table B). Besides obviously defeating the purpose of compression, this crashes the decoder.
Changed in libecbufr: | |
importance: | Undecided → Low |
status: | New → Triaged |
importance: | Low → Medium |
To post a comment you must log in.
Fix is committed to trunk rev. 189 and also into branch 0.8.2
For now, we simply allow NBINC to be of any size, even greater than bitwidth.