Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a bug, try to make coverity happy. #597

Merged
merged 2 commits into from
Jan 12, 2015

Conversation

nomis52
Copy link
Member

@nomis52 nomis52 commented Jan 11, 2015

No description provided.

@@ -253,7 +253,7 @@ bool KarateLight::ReadBack(uint8_t *rd_data, uint8_t *rd_len) {

// read payload-data (if there is any)
uint8_t payload_size = rd_buffer[CMD_HD_LEN];
if (payload_size > CMD_MAX_LENGTH - CMD_HD_LEN) {
if (payload_size > CMD_MAX_LENGTH - CMD_DATA_START) {
OLA_WARN << "KarateLight returned " << static_cast<int>(payload_size)
<< " bytes of data. This execeeds our buffer size";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SPaG exceeds

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably be "data, this" too

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) when pulling 4685e68 on nomis52:master into 064867d on OpenLightingProject:master.

@peternewman
Copy link
Member

LGTM aside from comment.

nomis52 added a commit that referenced this pull request Jan 12, 2015
Fix a bug, try to make coverity happy.
@nomis52 nomis52 merged commit 201d30b into OpenLightingProject:master Jan 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants