Merge "lmkd: Avoid potential out of buffer write"

am: 3d8fbfada6

Change-Id: Id7063aea8c8d5fb380e123af49cb3bb61c7fd449
This commit is contained in:
Greg Kaiser 2019-10-02 14:06:25 -07:00 committed by android-build-merger
commit b09ca44774
1 changed files with 1 additions and 1 deletions

2
lmkd.c
View File

@ -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;