milvus-io / birdwatcher

Apache License 2.0
46 stars 33 forks source link

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

Closed pkk0909 closed 1 month ago

pkk0909 commented 1 month ago

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 commented 1 month ago

@congqixia can you pls check it ?

congqixia commented 1 month ago

@congqixia can you pls check it ?

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