FRONTPANEL: Avoid theoretical potential buffer overrun
This commit is contained in:
parent
a5b7ebe44b
commit
11b5c1f1dd
1 changed files with 1 additions and 1 deletions
|
@ -589,7 +589,7 @@ return 0;
|
||||||
static int
|
static int
|
||||||
_panel_establish_register_bits_collection (PANEL *panel)
|
_panel_establish_register_bits_collection (PANEL *panel)
|
||||||
{
|
{
|
||||||
size_t i, buf_data, buf_needed = 0, reg_count = 0, bit_reg_count = 0;
|
size_t i, buf_data, buf_needed = 1, reg_count = 0, bit_reg_count = 0;
|
||||||
int cmd_stat, bits_count = 0;
|
int cmd_stat, bits_count = 0;
|
||||||
char *buf, *response = NULL;
|
char *buf, *response = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue