mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
coverity 226283 - fix out-of-bounds. Maybe a bit too large buffer now.
This commit is contained in:
parent
b9c020a1dd
commit
efe5e33acb
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ void DbpString(char *str) {
|
|||
void DbprintfEx(uint32_t flags, const char *fmt, ...) {
|
||||
#if DEBUG
|
||||
// should probably limit size here; oh well, let's just use a big buffer
|
||||
char output_string[128] = {0x00};
|
||||
char output_string[PM3_CMD_DATA_SIZE] = {0x00};
|
||||
va_list ap;
|
||||
va_start(ap, fmt);
|
||||
kvsprintf(fmt, output_string, 10, ap);
|
||||
|
@ -57,7 +57,7 @@ void DbprintfEx(uint32_t flags, const char *fmt, ...) {
|
|||
void Dbprintf(const char *fmt, ...) {
|
||||
#if DEBUG
|
||||
// should probably limit size here; oh well, let's just use a big buffer
|
||||
char output_string[128] = {0x00};
|
||||
char output_string[PM3_CMD_DATA_SIZE] = {0x00};
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, fmt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue