Merge branch 'master' of code.vuplus.com:/opt/repository/openvuplus_3.0
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-multimedia / libdvbsi++ / files / fix_section_len_check.patch
1 diff --git a/src/time_date_section.cpp b/src/time_date_section.cpp
2 index f0e6cf6..97ac02a 100644 (file)
3 --- a/src/time_date_section.cpp
4 +++ b/src/time_date_section.cpp
5 @@ -15,7 +15,7 @@
6  
7  TimeAndDateSection::TimeAndDateSection(const uint8_t * const buffer) : ShortSection(buffer)
8  {
9 -       if (sectionLength > 8) {
10 +       if (sectionLength >= 5) {
11                 utcTimeMjd = UINT16(&buffer[3]);
12                 utcTimeBcd = (buffer[5] << 16) | UINT16(&buffer[6]);
13         }