You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the LoadCCache() function does not check the length of the credentials cache file. This causes a panic in Unmarshal()
when parsing a short ccache file like, e.g., an empty file.
LoadCCache() already handles file reading errors returned by os.ReadFile(). So, it could be useful to also check a minimum ccache file length and return an error in case of a short file to avoid the panic. I'll open a PR with a suggestion. I hope, that's OK :)
The text was updated successfully, but these errors were encountered:
hwipl
linked a pull request
Jul 5, 2023
that will
close
this issue
Currently, the LoadCCache() function does not check the length of the credentials cache file. This causes a panic in Unmarshal()
when parsing a short ccache file like, e.g., an empty file.
LoadCCache() already handles file reading errors returned by os.ReadFile(). So, it could be useful to also check a minimum ccache file length and return an error in case of a short file to avoid the panic. I'll open a PR with a suggestion. I hope, that's OK :)
The text was updated successfully, but these errors were encountered: