-
Notifications
You must be signed in to change notification settings - Fork 376
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
Support antctl command for packetcapture #6884
base: main
Are you sure you want to change the base?
Conversation
func untarAll(reader io.Reader) error { | ||
tarReader := tar.NewReader(reader) | ||
for { | ||
header, err := tarReader.Next() |
Check failure
Code scanning / CodeQL
Arbitrary file access during archive extraction ("Zip Slip") High
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after #3659 is merged, this should be fixed.
Signed-off-by: Hang Yan <[email protected]>
4a616d6
to
bf4cb68
Compare
Signed-off-by: Hang Yan <[email protected]>
func untarAll(reader io.Reader, dstDir string) error { | ||
tarReader := tar.NewReader(reader) | ||
for { | ||
header, err := tarReader.Next() |
Check failure
Code scanning / CodeQL
Arbitrary file access during archive extraction ("Zip Slip") High
file system operation
Signed-off-by: Hang Yan <[email protected]>
TODO items:
after #3659 , the CodeQL alert should be fixed and UT coverage will also be improved.