mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 04:43:03 +01:00
Backported fix of possible buffer overflow when reading /etc/mtab
This commit is contained in:
parent
1f1b12a523
commit
b67eb4d9a7
@ -1460,7 +1460,7 @@ bool Mnt::get()
|
||||
**************************************/
|
||||
|
||||
|
||||
TEXT device[128], mount_point[128], mount_type[16], rw[128], foo1[16];
|
||||
TEXT device[MAXPATHLEN], mount_point[MAXPATHLEN], mount_type[16], rw[512], foo1[16];
|
||||
|
||||
const int n = fscanf(mtab, "%s %s %s %s %s %s", device, mount_point, mount_type, rw, foo1, foo1);
|
||||
if (n < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user