| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
there was still one overflow possible. strlcpy is faster anyway
because it doesn't unexpectedly zero the entire length of the string
when copying short strings....
|
|
|
|
|
|
| |
so dest[MAXPATHLEN] falls outside the buffer. This bug corrupted
arenas[0] defined in libc's malloc.c on PowerPC when kldxref is shared,
which triggered a delayed SIGSERV.
|
|
|
|
|
|
|
|
|
|
| |
that immediately follows the only call to it. maketempfile() uses
mkstemp(), so the temporary file has already been opened and using
fopen() again just opens the file twice. This also fixes the invalid
mode used on the fopen().
While here, assign NULL to fxref after fclose() because we test for
fxref being !NULL to determine if we have the (temporary) hints file
open.
|
| |
|
| |
|
|
|
|
|
| |
pointers and remove knowledge of the file format from kldxref.c.
This will make it possible to support more than one file format.
|
| |
|
|
|
|
| |
otherwise we are risking to coredump later on.
|
| |
|
|
|
|
|
|
|
|
|
| |
on variables read out of raw kld files. Unlike other platforms the value
will be in an Elf_Rela, not in the data section of the elf file.
Submitted by: Hartmut Brandt <brandt@fokus.gmd.de>
PR: 46730
Tested on: alpha (obrien), i386, sparc64
|
|
|
|
|
| |
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.
|
|
|
|
| |
Submitted by: jake
|
|
|
|
|
| |
PR: bin/32567
MFC after: 2 weeks
|
|
module->pathname.ko. It supports only ELF for now.
Submitted by: bp (with some minor tweaks)
|