Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
use custom grow method (#2555)
ahrav2e65773b270b
diff --git a/pkg/writers/buffer/buffer.go b/pkg/writers/buffer/buffer.goindex 9adea74cb..f4b443811 100644--- a/pkg/writers/buffer/buffer.go+++ b/pkg/writers/buffer/buffer.go@@ -151,7 +151,7 @@ func (b *Buffer) Write(ctx context.Context, data []byte) (int, error) {// which may require multiple allocations and copies if the size required is much larger// than double the capacity. Our approach aligns with default behavior when growth sizes// happen to match current capacity, retaining asymptotic efficiency benefits.- b.Buffer.Grow(growSize)+ b.Grow(growSize)}return b.Buffer.Write(data)