From 1025693558dc7982e8aad3b129f655196d66c279 Mon Sep 17 00:00:00 2001 From: "cpodurgiel@dmp.corp" Date: Fri, 13 Sep 2024 14:51:59 -0500 Subject: [PATCH] security: fix Incorrect conversion of an integer --- internal/corazawaf/transaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/corazawaf/transaction.go b/internal/corazawaf/transaction.go index 8c59c508e..36159c6e5 100644 --- a/internal/corazawaf/transaction.go +++ b/internal/corazawaf/transaction.go @@ -1375,7 +1375,7 @@ func (tx *Transaction) AuditLog() *auditlog.Log { hostPort, _ := strconv.Atoi(tx.variables.serverPort.Get()) // Convert the transaction fullRequestLength to Int32 - requestLength, err := strconv.Atoi(tx.variables.fullRequestLength.Get()) + requestLength, err := strconv.ParseInt(tx.variables.fullRequestLength.Get(), 10, 32) if err != nil { requestLength = 0 tx.DebugLogger().Error().