Merge "lmkd: Avoid potential out of buffer write"
This commit is contained in:
commit
3d8fbfada6
1 changed files with 1 additions and 1 deletions
|
|
@ -1394,7 +1394,7 @@ static int zoneinfo_parse(struct zoneinfo *zi) {
|
|||
char *buf;
|
||||
char *save_ptr;
|
||||
char *line;
|
||||
char zone_name[LINE_MAX];
|
||||
char zone_name[LINE_MAX + 1];
|
||||
struct zoneinfo_node *node = NULL;
|
||||
int node_idx = 0;
|
||||
int zone_idx = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue