Skip to content
This repository has been archived by the owner on Jan 28, 2023. It is now read-only.

vcpu: Fix an issue of pointer checking #282

Merged
merged 1 commit into from
Mar 27, 2020
Merged

vcpu: Fix an issue of pointer checking #282

merged 1 commit into from
Mar 27, 2020

Conversation

wcwang
Copy link
Contributor

@wcwang wcwang commented Mar 27, 2020

Replace hax_assert() with error logs for null pointer checking. It should check whether the returned pointer is null rather than assert it must be a valid pointer. This issue was found by the security check tool.

Signed-off-by: Wenchao Wang wenchao.wang@intel.com

@wcwang wcwang requested a review from hyuan3 March 27, 2020 10:16
@HaxmCI HaxmCI added CI:Build Pass CI:Build Pass CI:Mac Test Pass CI:Mac Test Pass labels Mar 27, 2020
Replace hax_assert() with error logs for null pointer checking. This
issue was found by the security check tool.

Signed-off-by: Wenchao Wang <wenchao.wang@intel.com>
@wcwang wcwang changed the title vcpu: Fix an issue of hax_assert() vcpu: Fix an issue of pointer checking Mar 27, 2020
@wcwang wcwang merged commit e178418 into master Mar 27, 2020
@wcwang wcwang deleted the cpuid-fixing branch March 27, 2020 11:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CI:Build Pass CI:Build Pass CI:Mac Test Pass CI:Mac Test Pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants