From ff8a3481abb745cf419f6e7d023529c4a39af4e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?sh=C3=ACw=C4=93i=20nguyen?= <84650617+HuskyDG@users.noreply.github.com> Date: Mon, 27 Nov 2023 00:42:57 +0700 Subject: [PATCH] fix accessing the array dexBuffer, jsonBuffer out of bounds --- app/src/main/cpp/main.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/src/main/cpp/main.cpp b/app/src/main/cpp/main.cpp index 9627dbc..63ef3a0 100644 --- a/app/src/main/cpp/main.cpp +++ b/app/src/main/cpp/main.cpp @@ -244,9 +244,6 @@ static void companion(int fd) { fclose(json); } - dexBuffer[dexSize] = 0; - jsonBuffer[jsonSize] = 0; - write(fd, &dexSize, sizeof(long)); write(fd, dexBuffer, dexSize);