ECCC-MSC / libecbufr

libecbufr is a general purpose, template-oriented BUFR encoding/decoding library
Other
10 stars 7 forks source link

decoder could read 1 byte beyond data of section 4 #62

Open vsouvan opened 4 years ago

vsouvan commented 4 years ago

When an invalid BUFR message with a short data section 4. The decoder may read 1 byte beyond data of section4 in memory. This could result in false value for the last descriptor if section 4 is short by 1 byte only.


Imported from Launchpad using lp2gh.

vsouvan commented 4 years ago

(by vanh-souvanlasy) substracted 1 from test condition before allowing use of next byte.