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

[Bug]: Due to the use of unsafe.Pointer, getting security Vulnerability in scan #314

Closed
pkk0909 opened this issue Sep 25, 2024 · 2 comments

Comments

@pkk0909
Copy link

pkk0909 commented Sep 25, 2024

Current Behavior

Due to the use of unsafe.Pointer in GetUnexportedField function (bapps/[go_prompt_parser.go file], getting critical vulnerability in static code scan. Need to avoid the use of unsafe.Pointer in code base

Expected Behavior

unsafe.Pointer need to be removed from the code base so that git repo will not have any security vulnerability in repo static code scan.

Steps To Reproduce

N/A

Environment

code scan issue

Anything else?

No response

@pkk0909
Copy link
Author

pkk0909 commented Sep 25, 2024

@congqixia can you pls check it ?

@congqixia
Copy link
Collaborator

@congqixia can you pls check it ?

Sure, just checked the code base. It turned out that this unsafe block could be removed.

congqixia added a commit to congqixia/birdwatcher that referenced this issue Sep 26, 2024
sre-ci-robot pushed a commit that referenced this issue Sep 26, 2024
congqixia added a commit to congqixia/birdwatcher that referenced this issue Sep 26, 2024
sre-ci-robot pushed a commit that referenced this issue Sep 26, 2024
Cherry-pick from master
pr: #315
Related to #314

Signed-off-by: Congqi Xia <[email protected]>
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

No branches or pull requests

2 participants