secret/internal/cli
sneak 8e3530a510 Fix use-after-free crash in readSecurePassphrase
The function was using defer to destroy password buffers, which caused
the buffers to be freed before the function returned. This led to a
SIGBUS error when trying to access the destroyed buffer's memory.

Changed to manual memory management to ensure buffers are only destroyed
when no longer needed, and the first buffer is returned directly to the
caller who is responsible for destroying it.
2025-07-22 12:46:16 +02:00
..
cli_test.go fix: handle error returns from os.Unsetenv and file.Close (errcheck) 2025-07-09 06:16:13 -07:00
cli.go Fix mnemonic input to not echo to screen 2025-07-22 12:39:32 +02:00
crypto.go Fix GetValue methods to return LockedBuffer internally 2025-07-15 08:59:23 +02:00
generate.go uses protected memory buffers now for all secrets in ram 2025-07-15 08:32:33 +02:00
init.go Fix use-after-free crash in readSecurePassphrase 2025-07-22 12:46:16 +02:00
integration_test.go fix: update JSON fields from snake_case to camelCase and make tests quiet by default 2025-07-15 07:35:48 +02:00
root.go Remove internal/macse package and fix all linter issues 2025-07-21 17:48:47 +02:00
secrets_size_test.go fmt 2025-07-15 08:33:16 +02:00
secrets.go Remove internal/macse package and fix all linter issues 2025-07-21 17:48:47 +02:00
test_helpers.go fix: resolve errcheck, gosec, and mnd linter errors 2025-07-09 06:59:01 -07:00
test_output_test.go latest from ai, it broke the tests 2025-06-20 05:40:20 -07:00
unlockers.go Fix cross-platform build issues and security vulnerabilities 2025-07-21 22:05:23 +02:00
vault.go Remove internal/macse package and fix all linter issues 2025-07-21 17:48:47 +02:00
version_test.go uses protected memory buffers now for all secrets in ram 2025-07-15 08:32:33 +02:00
version.go Remove internal/macse package and fix all linter issues 2025-07-21 17:48:47 +02:00