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

[Svace] fix svace issues #3659

Merged
merged 1 commit into from
Feb 14, 2022
Merged

[Svace] fix svace issues #3659

merged 1 commit into from
Feb 14, 2022

Conversation

jaeyun-jung
Copy link
Collaborator

Fix svace issues

  • init local variable
  • check allocation failure case

Signed-off-by: Jaeyun jy1210.jung@samsung.com

@taos-ci
Copy link
Collaborator

taos-ci commented Feb 11, 2022

📝 TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #3659. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://nnstreamer.mooo.com/.

Copy link
Collaborator

@taos-ci taos-ci left a comment

Choose a reason for hiding this comment

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

@jaeyun-jung, 💯 All CI checkers are successfully verified. Thanks.

@@ -597,6 +597,7 @@ gst_tensor_aggregation_add_data (GHashTable * table, const guint32 key)
else
hashkey = key;
aggr = g_new0 (gst_tensor_aggregation_data_s, 1);
g_assert (aggr != NULL);
Copy link
Member

Choose a reason for hiding this comment

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

Don't fix this. Mark this "false positive". I have reported this issue to SE (SVACE maintainer) and it appears that they didn't fix it yet; g_new series are supposed to kill the process if g_new fails.

Copy link
Member

@myungjoo myungjoo Feb 12, 2022

Choose a reason for hiding this comment

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

Besides, try not to add g_assert in non-test-case codes. Try to make proper error handling code instead.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

updated

Copy link
Member

@myungjoo myungjoo left a comment

Choose a reason for hiding this comment

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

LGTM except for checking g_new0 return.

Fix svace issues
- init local variable
- check allocation failure case

Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
Copy link
Collaborator

@taos-ci taos-ci left a comment

Choose a reason for hiding this comment

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

@jaeyun-jung, 💯 All CI checkers are successfully verified. Thanks.

Copy link
Member

@anyj0527 anyj0527 left a comment

Choose a reason for hiding this comment

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

LGTM✔

@jaeyun-jung jaeyun-jung merged commit cbe11e9 into nnstreamer:main Feb 14, 2022
@jaeyun-jung jaeyun-jung deleted the fix-svace-issue branch February 15, 2022 02:25
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

4 participants