mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-05 06:20:00 +02:00
cansniffer: fix buffer length in readsettings()
The Android build discovered a char buffer overflow in readsettings(). Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
This commit is contained in:
+1
-1
@@ -800,7 +800,7 @@ int readsettings(char* name)
|
||||
{
|
||||
int fd;
|
||||
char fname[30] = SETFNAME;
|
||||
char buf[25] = {0};
|
||||
char buf[30] = {0};
|
||||
int j;
|
||||
bool done = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user