RfidResearchGroup / proxmark3

Iceman Fork - Proxmark3
http://www.icedev.se
GNU General Public License v3.0
3.72k stars 998 forks source link

cmdtrace.c: fix segfault in 'trace list' after failed load #2196

Closed hazardousvoltage closed 8 months ago

hazardousvoltage commented 8 months ago

When a trace is loaded, then a subsequent load fails, 'trace list' segfaults because CmdTraceLoad frees gs_trace but doesn't zero the length, and CmdTraceList doesn't check for NULL. Fixed.

github-actions[bot] commented 8 months ago

You are welcome to add an entry to the CHANGELOG.md as well

iceman1001 commented 8 months ago

Great catch!