Fix ZipSlip vuln and integer conversion issue

This commit is contained in:
Nicolas Will
2024-06-17 12:53:45 +02:00
parent fc9fcc7ae6
commit 50da8eefe8
2 changed files with 15 additions and 1 deletions

View File

@@ -136,7 +136,7 @@ func main() {
rmqUser := os.Getenv("MRVA_RABBITMQ_USER")
rmqPass := os.Getenv("MRVA_RABBITMQ_PASSWORD")
rmqPortAsInt, err := strconv.Atoi(rmqPort)
rmqPortAsInt, err := strconv.ParseInt(rmqPort, 10, 16)
if err != nil {
slog.Error("Failed to parse RabbitMQ port", slog.Any("error", err))
os.Exit(1)