You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
749 B

>From 47578127ccfed131eb4586ce48a568b7aed0e9b9 Mon Sep 17 00:00:00 2001
From: [CST] Focus <focus.cst@gmail.com>
Date: Thu, 1 Mar 2012 13:37:55 +0400
Subject: [PATCH] src/time_date_section.cpp: fix sectionLength check
---
src/time_date_section.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/time_date_section.cpp b/src/time_date_section.cpp
index 63e24dd..f71ff42 100644
--- a/src/time_date_section.cpp
+++ b/src/time_date_section.cpp
@@ -15,7 +15,7 @@
TimeAndDateSection::TimeAndDateSection(const uint8_t * const buffer) : ShortSection(buffer)
{
- if (sectionLength > 8) {
+ if (sectionLength >= 5) {
utcTimeMjd = UINT16(&buffer[3]);
utcTimeBcd = (buffer[5] << 16) | UINT16(&buffer[6]);
}
--
1.7.1