From 467409f32b056ecc9db13126e138a57915115049 Mon Sep 17 00:00:00 2001 From: Nikola Ducak Date: Fri, 7 Jun 2024 12:06:16 +0200 Subject: [PATCH] fix: writing over the buffer limit --- source/utils/crypto.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/utils/crypto.cpp b/source/utils/crypto.cpp index 7bad670..19757f9 100644 --- a/source/utils/crypto.cpp +++ b/source/utils/crypto.cpp @@ -96,7 +96,7 @@ std::string decrypt(const std::string &password, std::istream &file) { } std::array inBuffer{}; - std::array outBuffer{}; + std::array outBuffer{}; int bytesRead = 0; int outLength = 0; std::string output;