-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Initial implementation of expanded mobile PutFile #2128
Initial implementation of expanded mobile PutFile #2128
Conversation
4bc4914
to
be246ef
Compare
05df881
to
ecb4f36
Compare
be246ef
to
4bc4914
Compare
namespace { | ||
|
||
uint32_t GetCrc32CheckSum(const std::vector<uint8_t>& binary_data) { | ||
std::size_t file_size = binary_data.size(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AByzhynar const variable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LuxoftAKutsan Fixed in 9e46887
|
||
namespace { | ||
|
||
uint32_t GetCrc32CheckSum(const std::vector<uint8_t>& binary_data) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AByzhynar documentation would be nice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LuxoftAKutsan Fixed in 9e46887
const size_t bin_data_size = binary_data.size(); | ||
|
||
if ((*message_)[strings::msg_params].keyExists(strings::crc32_check_sum)) { | ||
LOG4CXX_DEBUG(logger_, "Binary Data Size: " << bin_data_size); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AByzhynar make it tace
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LuxoftAKutsan Fixed in 9e46887
9e46887
to
e55964f
Compare
Implemented function in PutFile which correctly calculates CRC32 checksum for std::vector<uint8_t> Added comparison of calculated CRC checksum with received in PutFile request. Added PutFile response generation in case of CRC sum mismatch Fixed handling of unsigned integer values
e55964f
to
97e267a
Compare
Fixes #1455
This PR is ready for review.
Risk
This PR makes minor API changes.
Testing Plan
ATF tests scripts will be provided
Summary
Implemented function in PutFile which correctly calculates CRC32 checksum
Added comparison of calculated CRC checksum with received in PutFile
request.
Added PutFile response generation in case of CRC sum mismatch
Fixed handling of unsigned integer values
Tasks Remaining:
CLA