| Commit message (Collapse) | Author | Age | Files | Lines |
|\ \
| | |
| | |
| | |
| | | |
branch. This is effectively llvm/clang 3.2 RC2; the 3.2 release is
coming soon.
|
| | |
| | |
| | |
| | | |
http://llvm.org/svn/llvm-project/cfe/branches/release_32@168974
|
| | |
| | |
| | |
| | | |
http://llvm.org/svn/llvm-project/cfe/trunk@162107
|
| | |
| | |
| | |
| | | |
http://llvm.org/svn/llvm-project/llvm/branches/release_32@168974
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The changes were derived from what has been committed to NetBSD, with
modifications. These are:
1. Preserve the existsing GLOB_LIMIT behaviour by including the number
of matches to the set of parameters to limit.
2. Change some of the limits to avoid impacting normal use cases:
GLOB_LIMIT_STRING - change from 65536 to ARG_MAX so that glob(3)
can still provide a full command line of expanded names.
GLOB_LIMIT_STAT - change from 128 to 1024 for no other reason than
that 128 feels too low (it's not a limit that impacts the
behaviour of the test program listed in CVE-2010-2632).
GLOB_LIMIT_PATH - change from 1024 to 65536 so that glob(3) can
still provide a fill command line of expanded names.
3. Protect against buffer overruns when we hit the GLOB_LIMIT_STAT or
GLOB_LIMIT_READDIR limits. We append SEP and EOS to pathend in
those cases. Return GLOB_ABORTED instead of GLOB_NOSPACE when we
would otherwise overrun the buffer.
This change also modifies the existing behaviour of glob(3) in case
GLOB_LIMIT is specifies by limiting the *new* matches and not all
matches. This is an important distinction when GLOB_APPEND is set or
when the caller uses a non-zero gl_offs. Previously pre-existing
matches or the value of gl_offs would be counted in the number of
matches even though the man page states that glob(3) would return
GLOB_NOSPACE when gl_matchc or more matches were found.
The limits that cannot be circumvented are GLOB_LIMIT_STRING and
GLOB_LIMIT_PATH all others can be crossed by simply calling glob(3)
again and with GLOB_APPEND set.
The entire description above applies only when GLOB_LIMIT has been
specified of course. No limits apply when this flag isn't set!
Obtained from: Juniper Networks, Inc
|
| | |
| | |
| | |
| | |
| | |
| | | |
equivalent to malloc(size). This eliminates the conditional expression
used for calling either realloc() or malloc() when realloc() will do
all the time.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
free and clear the gl_pathv pointer in the glob_t structure. Such
breaks the invariant of the glob_t structure, as stated in the comment
right in front of the globextend() function. If gl_pathv was non-NULL,
then gl_pathc was > 0. Making gl_pathv a NULL pointer without also
setting gl_pathc to 0 is wrong.
Since we otherwise don't free the memory associated with a glob_t in
error cases, it's unlikely that this change will cause a memory leak
that wasn't already there to begin with. Callers of glob(3) must
call globfree(3) irrespective of whether glob(3) returned an error
or not.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
written. Use clearer text for this.
PR: docs/174023
Submitted by: Paul Procacci <pprocacci@gmail.com>
Approved by: bcr (mentor)
MFC after: 1 week
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This commit adds a new mode option 'e' that must follow any 'b', '+' and/or
'x' options. C11 is clear about the 'x' needing to follow 'b' and/or '+' and
that is what we implement; therefore, require a strict position for 'e' as
well.
For freopen() with a non-NULL path argument and fopen(), the close-on-exec
flag is set iff the 'e' mode option is specified. For freopen() with a NULL
path argument and fdopen(), the close-on-exec flag is turned on if the 'e'
mode option is specified and remains unchanged otherwise.
Although the same behaviour for fopen() can be obtained by open(O_CLOEXEC)
and fdopen(), this needlessly complicates the calling code.
Apart from the ordering requirement, the new option matches glibc.
PR: kern/169320
|
| | |
| | |
| | |
| | | |
Reviewed by: glebius
|
| | |
| | |
| | |
| | |
| | |
| | | |
report error if chmod(2) fails
Reported by: jh
|
| | | |
|
| | |
| | |
| | |
| | | |
MFC after: 1 week
|
| | |
| | |
| | |
| | | |
MFC after: 3 days
|
| | |
| | |
| | |
| | |
| | |
| | | |
- whitespace nit
Reviewed by: glebius
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
due to the invoked copyout(9).
Reviewed by: davidxu
|
| | |
| | |
| | |
| | | |
MFC after: 2 weeks
|
| | |
| | |
| | |
| | | |
Reviewed by: glebius
|
| | |
| | |
| | |
| | |
| | |
| | | |
PR: standards/170346
Submitted by: "Jukka A. Ukkonen" <jau@iki.fi>
MFC after: 1 month
|
| | |
| | |
| | |
| | |
| | |
| | | |
PR: standards/170346
Submitted by: "Jukka A. Ukkonen" <jau@iki.fi>
MFC after: 1 month
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
static linking with libc and libm work.
Requested by: jilles
MFC after: 1 week
X-MFC-With: 242879
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
libc.a and libc_p.a. In addition, define isnan in libm.a and libm_p.a,
but not in libm.so.
This makes it possible to statically link executables using both isnan
and isnanf with libc and libm.
Tested by: kargl
MFC after: 1 week
|
| | |
| | |
| | |
| | | |
MFC after: 2 weeks
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
There is one known issue: Some probes will display an error message along the
lines of: "Invalid address (0)"
I tested this with both a simple dtrace probe and dtruss on a few different
binaries on 32-bit. I only compiled 64-bit, did not run it, but I don't expect
problems without the modules loaded. Volunteers are welcome.
MFC after: 1 month
|
| | |
| | |
| | |
| | | |
Approved by: marcel (mentor)
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Add it to LDFLAGS instead.
Submitted by: Garrett Cooper <yanegomi@gmail.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
pmc_event values against integer constants which fall outside the enum
range.
Reviewed by: fabient, sbruno
MFC after: 3 days
|
| | |
| | |
| | |
| | | |
MFC after: 3 days
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This caused -std=c++0x not to be passed to the build by default.
Pointy hat to: dim
MFC after: 3 days
|
| | |
| | |
| | |
| | | |
MFC after: 1 week
|
| | |
| | |
| | |
| | | |
MFC after: 1 week
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
Reviewed by: des, gjb
|
| | |
| | |
| | |
| | | |
Reported by: Garrett Cooper <yanegomi@gmail.com>
|
| | |
| | |
| | |
| | |
| | |
| | | |
a directory.
MFC after: 1 month
|
| | |
| | |
| | |
| | | |
MFC after: 3 days
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- Abort parsing and return an error if we run out of memory.
- Return EILSEQ from geom_xml2tree() for XML syntax errors.
Silence on: freebsd-geom
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Submitted by: hiren panchasara <hiren.panchasara@gmail.com>
Reviewed by: jimharris@ sbruno@
Obtained from: Yahoo! Inc.
MFC after: 2 weeks
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
-std=gnu++98 will give a lot of warnings with clang, so please use
-std=c++0x or higher, or use NO_WERROR.
MFC after: 1 week
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
checks. Also indicate killpg(2) is POSIX compliant.
Reviewed by: jilles
Reviewed by: wblock
Approved by: cperciva
MFC after: 3 days
|
| | |
| | |
| | |
| | |
| | | |
Approved by: cperciva
MFC after: 1 week
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
PR: 172452
Submitted by: gcooper
Reviewed by: des
Approved by: cperciva
MFC after: 1 week
|