| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
r158812 (ache):
Reflect size_t changes in glob.h
Obtained from: NetBSD (mostly)
r159294:
- ANSIfy.
- Remove two unnecessary casts.
r243779 (marcel):
Protect against DoS attacks, such as being described in CVE-2010-2632.
The changes were derived from what has been committed to NetBSD, with
modifications.
This fixes FreeBSD-SA-13:02.libc for stable/6.
Notes:
svn path=/stable/6/; revision=247126
|
| |
|
|
|
|
|
|
|
|
|
|
| |
In setusercontext(), do not apply user settings unless running as the
user in question (usually but not necessarily because we were called
with LOGIN_SETUSER). This plugs a hole where users could raise their
resource limits and expand their CPU mask.
Approved by: des
Notes:
svn path=/stable/6/; revision=213146
|
| |
|
|
|
|
|
| |
Cleanup for WARNS 6.
Notes:
svn path=/stable/6/; revision=207782
|
| |
|
|
|
|
|
| |
Cleanup for WARNS 3.
Notes:
svn path=/stable/6/; revision=207781
|
| |
|
|
|
|
|
| |
Cleanup for WARNS 2.
Notes:
svn path=/stable/6/; revision=207780
|
| |
|
|
|
|
|
|
| |
r173703). Given the large delta between this and head, mergeinfo
likely would do more harm than good.
Notes:
svn path=/stable/6/; revision=207779
|
| |
|
|
|
|
|
| |
Add arm support in libthread_db
Notes:
svn path=/stable/6/; revision=207778
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
POSIX permits but does not require checking access on the current and parent
directories.
Because various programs do not like it if getcwd(3) fails, it seems best
to avoid checking access as much as possible. There are various reports in
GNATS about this (search for getcwd).
Our getcwd(3) implementation first queries the kernel for the pathname
directly, which does not check any permissions but sometimes fails, and then
falls back to reading all parent directories for the names.
PR: standards/44425
Notes:
svn path=/stable/6/; revision=207686
|
| |
|
|
|
|
|
|
|
|
|
| |
Avoid aliasing which leads to incorrect results when compiling with the
default strict aliasing rules.
PR: 144900
Submitted by: Peter Jeremy
Notes:
svn path=/stable/6/; revision=205907
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- While SPARC V9 allows tininess to be detected either before or after
rounding (impl. dep. #55), the SPARC JPS1 responsible for SPARC64 and
UltraSPARC processors defines that in all cases tinyness is detected
before rounding, therefore rounding up to the smallest normalised
number should set the underflow flag.
- If an infinite result is rounded down, the result should have an
exponent 1 less than the value for infinity.
PR: 144900
Submitted by: Peter Jeremy
Notes:
svn path=/stable/6/; revision=205903
|
| |
|
|
|
|
|
|
|
|
|
| |
Division should take both arguments' signs into account when the
the dividend is infinity or zero and the divisor is not the same.
PR: 144900
Submitted by: Peter Jeremy
Notes:
svn path=/stable/6/; revision=205898
|
| |
|
|
|
|
|
|
|
|
| |
FPU_DEBUG requires <stdio.h>.
PR: 144900
Submitted by: Peter Jeremy
Notes:
svn path=/stable/6/; revision=205895
|
| |
|
|
|
|
|
|
|
|
|
| |
Ensure that __fpu_ftox() both returns the high bits and res[1] contains
the low bits also in the default case.
PR:i 144900
Obtained from: OpenBSD
Notes:
svn path=/stable/6/; revision=205892
|
| |
|
|
|
|
|
|
| |
- Remove a bogus forward declaration.
- Fix whitespace.
Notes:
svn path=/stable/6/; revision=205888
|
| |
|
|
|
|
|
|
|
|
|
| |
In _gettemp(), check that the length of the path doesn't exceed
MAXPATHLEN. Otherwise the path name (or part of it) may not fit to
carrybuf causing a buffer overflow.
PR: bin/140228
Notes:
svn path=/stable/6/; revision=205331
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- The OPSZ macro actually only does the right thing for int32 and int64
operands but not for double and extended double ones. Instead of trying
to fix the macro just nuke it and unroll the loops in the correct way
though as extended double operands turn out to be the only special case.
- For FxTO{s,d,q} the source operand is int64 so rs2 has to be re-decoded
after setting type accordingly as it's generally decoded using the low
2 bits as the type, which are 0 for these three instructions.
- Similarly, in case of F{s,d,q}TOx the target is int64 so rd has to be
re-decoded using not only the operand mask appropriate for int64 but
also the correct register number encoding.
- Use const where appropriate.
- Wrap long lines.
Submitted by: Peter Jeremy (partly)
Notes:
svn path=/stable/6/; revision=205185
|
| |
|
|
|
|
|
|
| |
This Makefile change can be removed when the next version of sendmail
is imported as it will have this built in to the FreeBSD conf.h section.
Notes:
svn path=/stable/6/; revision=204817
|
| |
|
|
|
|
|
| |
Remove unnecessary quoting and markup, add missing punctuation.
Notes:
svn path=/stable/6/; revision=202415
|
| |
|
|
|
|
|
|
|
|
|
| |
Document the special loopback address behaviour of jails.
PR: kern/103464
Submitted by: brueffer (correct markup)
Reviewed by: brueffer
Notes:
svn path=/stable/6/; revision=201607
|
| |
|
|
|
|
|
|
|
| |
Grammar fix.
Submitted by: Kenyon Ralph <kenyon kenyonralph com>
Notes:
svn path=/stable/6/; revision=201465
|
| |
|
|
|
|
|
|
|
|
|
| |
used within FreeBSD base system only, and discourage user applications
from using it. User applications should use the expat version from the
ports/package collection.
Reviewed by: simon (earlier version)
Notes:
svn path=/stable/6/; revision=201041
|
| |
|
|
|
|
|
|
|
|
| |
Fix the grammar in the isgraph(3) description, almost as per the PR.
PR: 140455
Submitted by: Jeremy Huddleston <jeremyhu@apple.com>
Notes:
svn path=/stable/6/; revision=200964
|
| |
|
|
|
|
|
|
|
|
| |
The fd_mask type is an unsigned long, not an int, so treat the mask as a
long instead of an int when examining the results of select() to look for
RPC requests. Previously this routine would ignore RPC requests to sockets
whose file descriptor mod 64 was greater than 31 on a 64-bit platform.
Notes:
svn path=/stable/6/; revision=200226
|
| |
|
|
|
|
|
| |
Add an .Nm for strncat.
Notes:
svn path=/stable/6/; revision=200094
|
| |
|
|
|
|
|
|
|
|
| |
Fix the grammar as in the PR, and then some.
PR: 140454
Submitted by: Jeremy Huddleston <jeremyhu@apple.com>
Notes:
svn path=/stable/6/; revision=199795
|
| |
|
|
|
|
|
| |
Fix grammar.
Notes:
svn path=/stable/6/; revision=199711
|
| |
|
|
|
|
|
| |
Fix a memory leak in acl_from_text() in case the conversion succeeded.
Notes:
svn path=/stable/6/; revision=199703
|
| |
|
|
|
|
|
|
|
|
| |
Improved the manpage description. The committed wording
was provided by jhb.
Remove a note about vfork(4) going to be eliminated, it's here to stay.
Notes:
svn path=/stable/6/; revision=199570
|
| |
|
|
|
|
|
|
| |
Fix a copy-paste bug when reading data from the last 3 (7 for PAE) bytes of
a page mapped by a large page in the kernel.
Notes:
svn path=/stable/6/; revision=199410
|
| |
|
|
|
|
|
| |
Fix a copy+paste error by checking the correct variable against MM_NULLACT.
Notes:
svn path=/stable/6/; revision=199316
|
| |
|
|
|
|
|
|
| |
Initialize f_rabuf in the raw device case. A subsequent close()
later on would try to free it, leading to a crash.
Notes:
svn path=/stable/6/; revision=198890
|
| |
|
|
|
|
|
|
|
|
|
| |
Correct the pthread stub prototype for pthread_mutexattr_settype to allow for
the type argument. This is known to fix some pthread_mutexattr_settype()
invocations, especially when it comes to pulseaudio.
Approved by: kib
Notes:
svn path=/stable/6/; revision=197760
|
| |
|
|
|
|
|
|
|
| |
on other platforms.
Note: this is not an MFC due to removal of alpha support in head.
Notes:
svn path=/stable/6/; revision=197736
|
| |
|
|
|
|
|
|
|
|
| |
Add an option to enforce strict RFC 1034 compliance.
Document how to enable strict RFC 1034 enforcements.
PR: kern/129477
Notes:
svn path=/stable/6/; revision=197602
|
| |
|
|
|
|
|
|
| |
PR: kern/63064
Submitted by: Stefan `Sec` Zehl <sec 42 org> (with some small changes)
Notes:
svn path=/stable/6/; revision=195889
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Lock around access to nc_file and netconfig_info ("ni"). The RPC
part of libc is still not thread safe but this would at least
reduce the problems we have.
PR: threads/118544
Submitted by: Changming Sun <snnn119 gmail com>
Notes:
svn path=/stable/6/; revision=195432
|
| |
|
|
|
|
|
|
| |
system calls (i.e. 8.0+), then invoke the system calls instead of using
open/fcntl/unlink.
Notes:
svn path=/stable/6/; revision=194740
|
| |
|
|
|
|
|
|
|
|
|
| |
Add -fno-omit-frame-pointer to CFLAGS used to compile crt1.c on amd64.
For gcc' __builtin_frame_address() to work, all call frames need to save
frame pointer. In particular, this is important for the upper frame that
should terminate the chain.
Notes:
svn path=/stable/6/; revision=194301
|
| |
|
|
|
|
|
| |
feature is present by checking the kern.features sysctl MIB.
Notes:
svn path=/stable/6/; revision=193995
|
| |
|
|
|
|
|
| |
avoid to write a int into a char * avoiding breakages on BE architectures.
Notes:
svn path=/stable/6/; revision=193838
|
| |
|
|
|
|
|
|
|
| |
Properly handle malloc() failures.
PR: bin/83338
Notes:
svn path=/stable/6/; revision=193000
|
| |
|
|
|
|
|
|
|
|
|
| |
Bail out when memory allocation is failed, rather than referencing
a NULL pointer.
PR: kern/94480
Submitted by: Michiel Pelt <m.pelt xs4all nl>
Notes:
svn path=/stable/6/; revision=192996
|
| |
|
|
|
|
|
|
| |
Since audit(4) isn't based on posix1e, remove the commented out audit.h header,
xref libbsm(3).
Notes:
svn path=/stable/6/; revision=192633
|
| |
|
|
|
|
|
|
|
|
|
| |
commit.
Reported by: many
Sponsored by: Sandvine Incorporated
Pointy hat to: attilio
Notes:
svn path=/stable/6/; revision=192320
|
| |
|
|
|
|
|
|
|
|
| |
- Introduce and use new functions pthread_{read, write}_*
- Move psaddr_t from void * to uintptr_t
- Fix some ABI mismatches
- Introduce WARN 6 for compilation
Notes:
svn path=/stable/6/; revision=192098
|
| |
|
|
| |
Notes:
svn path=/stable/6/; revision=191786
|
| |
|
|
|
|
|
| |
Security: Potential Information Leak
Notes:
svn path=/stable/6/; revision=190940
|
| |
|
|
|
|
|
|
| |
Avoid memory leaks, properly handle malloc/realloc failures,
and remove duplicate includes.
Notes:
svn path=/stable/6/; revision=190659
|
| |
|
|
|
|
|
| |
Use linker set to collection all target operations.
Notes:
svn path=/stable/6/; revision=189058
|
| |
|
|
|
|
|
|
| |
PR: bin/127591
Submitted by: "Eugene M. Kim" <20080111.freebsd.org__at__ab.ote.we.lv>
Notes:
svn path=/stable/6/; revision=188691
|