| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
If getcwd() is supplied a buffer size of exactly 1 and a path of "/", it
could result in a nul byte being written out of array bounds. POSIX says
it should return ERANGE if the path will not fit in the available buffer
(with terminating nul). 1 byte cannot fit any possible path with its nul,
so immediately return ERANGE in that case.
OpenSSH never uses getcwd() with this buffer size, and all current
(and even quite old) platforms that we are currently known to work
on have a native getcwd() so this code is not used on those anyway.
Reported by Qualys, ok djm@
|
| |
|
| |
|
|
|
|
|
| |
longer want to sync this file (OpenBSD uses a __getcwd syscall now, we
want this longhand version)
|
|
|
|
| |
with OpenBSD code since we don't support platforms without fstat any more.
|
| |
|
|
|
|
|
| |
after the copyright notices. Having them at the top next to the CVSIDs
guarantees a conflict for each and every sync.
|
|
|
|
| |
source file path (in OpenBSD tree).
|
|
|
|
| |
and minor fixes.
|
|
|
|
| |
- No more 4-term BSD licenses in our tree
|
| |
|
|
|
|
|
| |
have issues of our fixes not propogating right (ie bcopy instead of
memmove). OK tim
|
|
|
|
| |
getcwd.c.
|
|
openbsd-compat/. And resolve all ./configure and Makefile.in issues
assocated.
Logic:
* All OpenBSD functions should have the same filename as in the OpenBSD
tree
* All 'home brew' functions have bsd-* infront of them.
* All 'not really implemented' functions have fake-* infront of them.
|