-
-
Notifications
You must be signed in to change notification settings - Fork 283
Klocwork issues #62
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
Klocwork issues #62
Conversation
Move getTimeStampClks() function to an *.S file It is fully implemented in assembly and we take care of returning value by filling in the proper value in the proper registers. Signed-off-by: Bogdan Pricop <bogdan.pricop@emutex.com>
* Added comment to verify requirement for infinite loop. Signed-off-by: Kevin Moloney <kevin.moloney@emutex.com>
* Added comment to verify requirement for infinite loop. Signed-off-by: Kevin Moloney <kevin.moloney@emutex.com>
* Added comment to verify requirement for infinite loop. Signed-off-by: Kevin Moloney <kevin.moloney@emutex.com>
* Added a check for this null pointer. Signed-off-by: Kevin Moloney <kevin.moloney@emutex.com>
* Added comment to verify requirement for infinite loop. Signed-off-by: Kevin Moloney <kevin.moloney@emutex.com>
* using memset to initialize struct to zero. Signed-off-by: Kevin Moloney <kevin.moloney@emutex.com>
* using memset to initialize struct to zero. Signed-off-by: Kevin Moloney <kevin.moloney@emutex.com>
* Added a check to ensure array does not access index value of -1. * Added a check for this null pointer. Signed-off-by: Kevin Moloney <kevin.moloney@emutex.com>
* Added check to ensure _data_len is within index values. * Had to repeat the branch statement rather than move it because of memcpy. Signed-off-by: Kevin Moloney <kevin.moloney@emutex.com>
@calvinatintel, @bbaltz505 please hold off the merge. |
Ok. Thanks Bogdan. |
Change getTimeStampClks() implementation from assembly to C. Signed-off-by: Bogdan Pricop <bogdan.pricop@emutex.com>
@bbaltz505 @calvinatintel I have updated pull request with Bogdans fix for Klocwork#137. |
Calvin, Brian, I would say we are good to review the changes before merge. |
Thanks Bogdan and Dan. @kmsywula can you review these KW fixes? |
@SidLeung @bigdinotech please review. These are minor fixes for Klocwork defects. Klocwork scans showed possible memory leaks and other issues. |
@calvinatintel code looks good tom me +1 |
* Added check to ensure _data_len is within index values. * Had to repeat the branch statement rather than move it because of memcpy. Signed-off-by: Kevin Moloney <kevin.moloney@emutex.com>
There are 2 KW defects still in this PR so @pricopb will probably push another update. |
* Added check to ensure _data_len is within index values. * Had to repeat the branch statement rather than move it because of memcpy. * Fixed bug introduced(c8ecd5f) in WString.h when "len" became protected. Signed-off-by: Kevin Moloney <kevin.moloney@emutex.com>
…o testing Conflicts: libraries/CurieBle/src/BleCharacteristic.cpp
Change && to || Signed-off-by: Kevin Moloney <kevin.moloney@emutex.com>
I think we are good now @bbaltz505! |
@SidLeung @kmsywula @bigdinotech Please review again! |
Klocwork likes your latest changes. :-) +1 from me. |
@bbaltz505 Since this issue was for resolving Klocwork messages, I think it should be merged in. Thoughts? |
I agree |
All relevant Klocwork fixes.