X Tutup
Skip to content

feat: Flush after reading the archive from disk#4862

Open
another-rex wants to merge 2 commits intogoogle:masterfrom
another-rex:read-and-flush
Open

feat: Flush after reading the archive from disk#4862
another-rex wants to merge 2 commits intogoogle:masterfrom
another-rex:read-and-flush

Conversation

@another-rex
Copy link
Contributor

Attempt at advising the kernel that we don't need that file in cache anymore

@gemini-code-assist
Copy link
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

fileData := stdout.Bytes()

// Write to disk
f, err := os.OpenFile(archivePath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644)

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
}

fileData, err := os.ReadFile(archivePath)
f, err := os.Open(archivePath)

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
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

Successfully merging this pull request may close these issues.

1 participant

X Tutup