]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
FIX: Coverity, Out-of-bounds. In the loop, variable i, can...
authormarshmellow42 <marshmellowrf@gmail.com>
Sun, 14 Feb 2016 17:36:55 +0000 (12:36 -0500)
committermarshmellow42 <marshmellowrf@gmail.com>
Sun, 14 Feb 2016 17:36:55 +0000 (12:36 -0500)
...be as much as 1051, overflowing the databuf with size 1024.

client/cmdhflegic.c

index 7ee601b232888aaece3aa1fe70b42d1731879d85..4e52c35c168574b0c2af3c1e6682aa8572fa6747 100644 (file)
@@ -58,7 +58,7 @@ int CmdLegicDecode(const char *Cmd)
   int crc = 0;
   int wrp = 0;
   int wrc = 0;
-  uint8_t data_buf[1024]; // receiver buffer
+  uint8_t data_buf[1052]; // receiver buffer
   char out_string[3076]; // just use big buffer - bad practice
   char token_type[4];
   
Impressum, Datenschutz