diff --git a/CHANGELOG.md b/CHANGELOG.md index a80c7790f..28212cd61 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file. This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log... ## [unreleased][unreleased] +- Fixed `pm3_grabbed_output_get` - heap overflow (@jonyen) - Fixed `hf iclass sam` - removed the old implementation (@iceman1001) - Fixed Proxmark5 (PM5/AT32) failing to re-enter the bootloader (@nemanjan00) - Fixed `hw fpga config` on Proxmark5 (PM5/AT32) now powers on the FPGA 24MHz clock (@nemanjan00) diff --git a/client/src/pm3.c b/client/src/pm3.c index ff08c8b94..1c4088305 100644 --- a/client/src/pm3.c +++ b/client/src/pm3.c @@ -80,7 +80,7 @@ const char *pm3_name_get(pm3_device_t *dev) { const char *pm3_grabbed_output_get(pm3_device_t *dev) { if (g_grabbed_output.ptr != NULL) { char *tmp = g_grabbed_output.ptr; - tmp[g_grabbed_output.size] = 0; + tmp[g_grabbed_output.idx] = 0; g_grabbed_output.idx = 0; g_grabbed_output.size = 0; return tmp;