mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-20 21:33:19 -07:00
some coverity fixes plus fix fdx help (#328)
* coverity fixes cmdhflegic- indications are the i in calls to data_buf[i] could = 1052 and overflow the array. cmdhfmfhard - +1 to add space for string null terminator - should we add the 0 terminator value too? reveng.c - memory leak util.c - fix potential overflow of array buf[] util_posix.c - possible integer overflow * fix help errors * fix sprint_hex_ascii again and this function is not even used anywhere... yet...
This commit is contained in:
parent
58c00ce7fc
commit
bf8243475b
6 changed files with 11 additions and 9 deletions
|
@ -247,7 +247,7 @@ static void init_bitflip_bitarrays(void)
|
|||
#endif
|
||||
|
||||
char state_files_path[strlen(get_my_executable_directory()) + strlen(STATE_FILES_DIRECTORY) + strlen(STATE_FILE_TEMPLATE) + 1];
|
||||
char state_file_name[strlen(STATE_FILE_TEMPLATE)];
|
||||
char state_file_name[strlen(STATE_FILE_TEMPLATE)+1];
|
||||
|
||||
for (odd_even_t odd_even = EVEN_STATE; odd_even <= ODD_STATE; odd_even++) {
|
||||
num_effective_bitflips[odd_even] = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue