mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-24 01:07:21 +01:00
Apply patch in pr 2067 to correct an uninitialized pointer dereference
in tickadj. Tested briefly here and it it seems to work. Possible 2.2 candidate. Submitted by: Don Lewis <Don.Lewis@tsc.tdk.com> Closes PR: 2067
This commit is contained in:
parent
18b7704795
commit
d07d447b29
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=20597
@ -339,7 +339,7 @@ getoffsets(filex, tick_off, tickadj_off, dosync_off, noprintf_off)
|
||||
unsigned long *dosync_off;
|
||||
unsigned long *noprintf_off;
|
||||
{
|
||||
char **kname;
|
||||
char **kname, *knm;
|
||||
|
||||
#if defined(SYS_AUX3) || defined(SYS_AUX2)
|
||||
#define X_TICKADJ 0
|
||||
@ -446,6 +446,7 @@ getoffsets(filex, tick_off, tickadj_off, dosync_off, noprintf_off)
|
||||
|
||||
#ifdef HAVE_GETBOOTFILE
|
||||
/* XXX bogus cast to avoid `const' poisoning. */
|
||||
kname = &knm;
|
||||
*kname = (char *)getbootfile();
|
||||
if (stat(*kname, &stbuf) == -1 || nlist(*kname, nl) == -1)
|
||||
*kname = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user