[Pkg-running-devel] [antpm] 02/14: ant: relax sanitization of authenticateResponse.authStrLen
Kristof Ralovich
ralovich-guest at moszumanska.debian.org
Sat Oct 10 11:28:34 UTC 2015
This is an automated email from the git hooks/post-receive script.
ralovich-guest pushed a commit to branch master
in repository antpm.
commit 6d5f856d2f9fca4c01cc3a21856dbfdecd217a7a
Author: RALOVICH, Kristof <tade60 at freemail.hu>
Date: Tue Aug 18 22:31:25 2015 +0200
ant: relax sanitization of authenticateResponse.authStrLen
It can be other than 16 bytes long
---
src/AntMessenger.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/AntMessenger.cpp b/src/AntMessenger.cpp
index d59a705..b2dacf2 100644
--- a/src/AntMessenger.cpp
+++ b/src/AntMessenger.cpp
@@ -770,8 +770,8 @@ AntMessenger::ANTFS_RequestClientDeviceSerialNumber(const uchar chan, const uint
const M_ANTFS_Response* cmdResp(reinterpret_cast<const M_ANTFS_Response*>(&burstData[8]));
sn = cmdResp->detail.authenticateResponse.sn;
- uchar lenDevName=cmdResp->detail.authenticateResponse.authStrLen;
- CHECK_RETURN_FALSE_LOG_OK_DBG2(lenDevName==16);
+ uchar lenDevName=cmdResp->detail.authenticateResponse.authStrLen; // 16 for 310XT, 14 for 410
+ CHECK_RETURN_FALSE_LOG_OK_DBG2(lenDevName>0);
devName = std::string(reinterpret_cast<const char*>(&burstData[16]), lenDevName);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-running/antpm.git
More information about the Pkg-running-devel
mailing list