error handling Section 1 with extra baggage
Bug #961455 reported by
cpb
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libECBUFR |
Fix Committed
|
Medium
|
cpb |
Bug Description
Found this with the G-AIRMETs at:
ftp://tgftp.
The section 1 length in these messages is 22 octets. A normal (edition 3) section 1 is 17 bytes padded out to 18. The 17 bytes is tracked in s1.header_len, and the 18 byte length in s1.len. The s1.data_len ends up being 5 in this case.
It triggers a failure in the section 4 size calculations, which causes section 4 to have a 1 byte undersize because it uses s1.len + s1.data_len... well, s1.len = s1.header_len+1 and this never gets recalculated when the baggage is handled. 18+5 != 22...
Changed in libecbufr: | |
status: | In Progress → Fix Committed |
Changed in libecbufr: | |
milestone: | none → 0.8.5 |
To post a comment you must log in.
Chris,
Would it be worthwhile to add one of these messages to the test suite?
Yves