buffer overflow from OpenBSD:
1.3 bitblit: Fixed potential buffer overflow Obtained from: OpenBSD
This commit is contained in:
parent
aa195c36e5
commit
f7cd0a9fc0
@ -258,7 +258,8 @@ char *opt;
|
||||
char *f;
|
||||
char *o = t;
|
||||
int l = strlen(opt);
|
||||
strcpy(t, mnt->mnt_opts);
|
||||
strncpy(t, mnt->mnt_opts, MNTMAXSTR - 1);
|
||||
t[MNTMAXSTR - 1] = 0;
|
||||
|
||||
while (*(f = nextmntopt(&o)))
|
||||
if (strncmp(opt, f, l) == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user