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

Check CCache file length in LoadCCache() #525

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hwipl
Copy link

@hwipl hwipl commented Jul 5, 2023

The LoadCCache() function does not check the file length of the ccache file and Unmarshal() panics when parsing a short ccache file like, e.g., an empty file. So, check a minimum ccache file length before unmarshalling it.

Closes #524

Check the file length of the credentials cache file in LoadCCache() to
avoid a panic when parsing a short ccache file, e.g., an empty file.

Signed-off-by: hwipl <[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

Successfully merging this pull request may close these issues.

LoadCCache does not check file length
1 participant