mirror of
https://github.com/xzeldon/htop.git
synced 2025-04-20 08:45:45 +03:00
Fix out-of-bounds write.
This commit is contained in:
parent
50b701258d
commit
616ee966d7
2
IncSet.c
2
IncSet.c
@ -29,7 +29,7 @@ typedef enum {
|
|||||||
#define IncSet_filter(inc_) (inc_->filtering ? inc_->modes[INC_FILTER].buffer : NULL)
|
#define IncSet_filter(inc_) (inc_->filtering ? inc_->modes[INC_FILTER].buffer : NULL)
|
||||||
|
|
||||||
typedef struct IncMode_ {
|
typedef struct IncMode_ {
|
||||||
char buffer[INCMODE_MAX];
|
char buffer[INCMODE_MAX+1];
|
||||||
int index;
|
int index;
|
||||||
FunctionBar* bar;
|
FunctionBar* bar;
|
||||||
bool isFilter;
|
bool isFilter;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user