diff options
| author | Eric Biggers <ebiggers@google.com> | 2025-02-17 14:41:29 -0800 |
|---|---|---|
| committer | Eric Biggers <ebiggers@google.com> | 2025-02-17 14:47:54 -0800 |
| commit | 57a749b308a07e26452a794533b4854d70212499 (patch) | |
| tree | c0ebb1e62be273935a8acda3ffd6f98d4738581f /actions/hashing_test.go | |
| parent | 8c4bd4c78b56422b90e759d891edd3a983d723f1 (diff) | |
Fix non-constant format string passed to errors.Wrapf()
Do not pass a path as the format string argument to errors.Wrapf(), as
this causes it to be misinterpreted as a format string, causing an
unexpected message if the path contains something like '%s'. Instead
use errors.Wrap(). This was diagnosed by Go 1.24.
Fixes https://github.com/google/fscrypt/issues/422
Diffstat (limited to 'actions/hashing_test.go')
0 files changed, 0 insertions, 0 deletions