fix accessing the array dexBuffer, jsonBuffer out of bounds

This commit is contained in:
shìwēi nguyen 2023-11-27 00:42:57 +07:00 committed by GitHub
parent 98bd06eb44
commit ff8a3481ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);