mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
fixed a valgrind memory usage of uninitialised array
This commit is contained in:
@@ -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]
|
||||
- Fix `lf cmdread` - uninitialised memory usage (@iceman1001)
|
||||
- Changed `hf st info` - now tries to check signature if available (@iceman1001)
|
||||
- Added `hf 14b mobib` - try to read out all data from a MOBIB card (@iceman1001)
|
||||
- Added `hf 14b calyso` - try to read out all data from a Calypso card (@iceman1001)
|
||||
|
||||
+3
-1
@@ -289,8 +289,9 @@ int CmdLFCommandRead(const char *Cmd) {
|
||||
bool cm = arg_get_lit(ctx, 10);
|
||||
CLIParserFree(ctx);
|
||||
|
||||
if (g_session.pm3_present == false)
|
||||
if (g_session.pm3_present == false) {
|
||||
return PM3_ENOTTY;
|
||||
}
|
||||
|
||||
#define PAYLOAD_HEADER_SIZE (12 + (3 * LF_CMDREAD_MAX_EXTRA_SYMBOLS))
|
||||
struct p {
|
||||
@@ -311,6 +312,7 @@ int CmdLFCommandRead(const char *Cmd) {
|
||||
payload.keep_field_on = keep_field_on;
|
||||
payload.verbose = verbose;
|
||||
memset(payload.symbol_extra, 0, sizeof(payload.symbol_extra));
|
||||
memset(payload.period_extra, 0, sizeof(payload.period_extra));
|
||||
|
||||
if (add_crc_ht && (cmd_len <= 120)) {
|
||||
// Hitag 1, Hitag S, ZX8211
|
||||
|
||||
Reference in New Issue
Block a user