Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Conversation

@tcahuzax
Copy link
Contributor

A pfw instance may use a logger after its
deletion.

This patch fixes it.

Signed-off-by: Thomas Cahuzac <[email protected]>
A test consists in getting a value and testing
it. But currently the value is tested even if
the "get" has failed.

This patch fixes it.

Signed-off-by: Thomas Cahuzac <[email protected]>
@tcahuzax tcahuzax force-pushed the klocwork_fix_3.1.0 branch 2 times, most recently from 8af936e to a03539a Compare December 29, 2015 13:34
Copy link
Contributor

Choose a reason for hiding this comment

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

You do not realy nead those std:: but it is more a matter of style.

This patch reworks the code to avoid
using the memcpy function.

Signed-off-by: Thomas Cahuzac <[email protected]>
This patch reworks the code to avoid calling
the strncpy method, which is considered as
unsafe on windows.

Signed-off-by: Thomas Cahuzac <[email protected]>
@tcahuzax tcahuzax changed the title Klocwork fix PFW 3.1.0 [review] Klocwork fix PFW 3.1.0 Dec 29, 2015
@tcahuzax
Copy link
Contributor Author

plz review @krocard

@krocard
Copy link
Contributor

krocard commented Dec 29, 2015

:shipit:

krocard added a commit that referenced this pull request Dec 29, 2015
Fix errors found by Klocwork on the PF 3.1.0

 - Wrong instance lifetime
 - Using uninitialized variable
 - Avoiding using memcpy
 - Removing strncpy call
@krocard krocard merged commit 82a11ba into intel:master Dec 29, 2015
@krocard krocard changed the title [review] Klocwork fix PFW 3.1.0 Klocwork fix PFW 3.1.0 Dec 29, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants