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 Coverity issues #193

Merged

Conversation

harvan
Copy link
Contributor

@harvan harvan commented Oct 8, 2024

CID/Type:
187157 Explicit null dereferenced
656172 Dereference after null check
602228 Dereference before null check

Tracked-On: OAM-126078

Copy link

@feijiang1 feijiang1 left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -2177,19 +2177,20 @@ void MfxC2DecoderComponent::DoWork(std::unique_ptr<C2Work>&& work)
if (it != m_pendingWorks.end()) {
work = std::move(it->second);
m_pendingWorks.erase(it);

if (work) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please explain why we move the logic here?

Thanks,
Tianmi

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have updated it. Please review again.

Thanks,
Hao

@harvan
Copy link
Contributor Author

harvan commented Oct 9, 2024

@TianmiChen @feijiang1 @YuanjunHuang Please review.

@sysopenci
Copy link

Android CI has started Engineering Build for this issue ,Please check the linked Tracked-On issue/Android CI Web for more details.

Copy link

@feijiang1 feijiang1 left a comment

Choose a reason for hiding this comment

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

LGTM

@sysopenci
Copy link

SUCCESS: Android CI has completed Engineering Build for this issue.Please check the linked Tracked-On issue/Android CI Web for more details.

@sysopenci sysopenci added Engineering Build Successful Engineering Build Successful and removed Engineering Build Not Started Engineering Build Not Started labels Oct 9, 2024
CID/Type:
187157 Explicit null dereferenced
656172 Dereference after null check
602228 Dereference before null check

Tracked-On: OAM-126078
Signed-off-by: Wan, Hao <[email protected]>
@sysopenci
Copy link

Android CI has started MERGE Build for this pr ,Please check the linked Tracked-On issue/Android CI Web for more details.

@sysopenci sysopenci merged commit 1c6ccea into projectceladon:celadon/u/mr0/master Oct 10, 2024
22 checks passed
@sysopenci
Copy link

Android CI has completed MERGE Build for this pr, build is FAILURE. Please check the linked Tracked-On issue/Android CI Web for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants