mirror of
https://github.com/linux-msm/cdba.git
synced 2026-02-25 13:11:56 -08:00
device_parser: fix out of bounds write
accept() expects the passed "scalar" to be 256 bytes long, so passing the 80 char key will cause an out-of-range write. Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This commit is contained in:
@@ -148,7 +148,7 @@ static void parse_board(struct device_parser *dp)
|
||||
void device_parser(const char *path)
|
||||
{
|
||||
struct device_parser dp;
|
||||
char key[80];
|
||||
char key[TOKEN_LENGTH];
|
||||
FILE *fh;
|
||||
|
||||
fh = fopen(path, "r");
|
||||
|
||||
Reference in New Issue
Block a user