Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
constant). These are not security holes but it is worth fixing
them anyway both for robustness and so folks looking for examples
in the tree are not misled into doing something potentially dangerous.
Furthermore, it is a bad idea to assume that pathnames will not
include '%' in them and that error routines don't return strings
with '%' in them (especially in light of the possibility of locales).
|
|
value of 1 indicates an incorrect executable type, a return value of -1 indicates some other problem. This gives us better fallback from /dev/ksyms to /bsd.
|
|
|
|
|
|
|
|
|
|
/bsd if it exists and we can open it.
o Fix a bug where kvm_mkdb would leave a temp file in /var/db if the
file argument didn't exit.
|
|
|
|
o If we are have no data segment and text seg is __LDPGSZ, we must be
/dev/ksyms or an equivalent so use sysctl to get version string.
o fix an int vs. long issue and prepend '_' to symbols that lack one
(alpha for instance).
|
|
|
|
|
|
o testdb() needs to take as an arg the name of the kernel so it can do
the version test correctly.
o add undocumented verbose flag to tell when we are rebuilding the .db file
o DO_* -> _NLIST_DO_*, this prevented kvm_mkdb from doing anything at all.
o preserve a few error messages so you get error output when none of
the exec types match the target.
o check malloc return values
o get_kerntext should not subtract the sizeof(struct exec) from kernel_text
|
|
|
|
Also, KNF, b* -> mem*, getopt tests against -1, not EOF, and index -> strchr.
Added OpenBSD tags.
|
|
|
|
also rely on machine/exec.h DO_{AOUT,ELF,...} symbols, and declare a
stub ecoff handler for niklas to finish writing (stealable from libc)
|
|
|
|
|
|
|