#
285830 |
|
23-Jul-2015 |
gjb |
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1 builds. - Update newvers.sh to reflect RC1. - Update __FreeBSD_version to reflect 10.2. - Update default pkg(8) configuration to use the quarterly branch.[1]
Discussed with: re, portmgr [1] Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
256281 |
|
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
#
249808 |
|
23-Apr-2013 |
emaste |
Renumber clauses to reduce diffs to other versions
NetBSD, OpenBSD, and Android's Bionic all number the clauses 1 through 3, so follow suit to make comparison easier.
Acked-by: imp@
|
#
234836 |
|
30-Apr-2012 |
dumbbell |
Remove incorrect __restrict qualifier on several pointers
The typical case was: static __inline int convert_ccl(FILE *fp, char * __restrict p, [...]) { [...]
if (p == SUPPRESS_PTR) { [...] } else { [...] }
[...] }
This qualifier says that the pointer is the only one at that time pointing to the resource.
Here, clang considers that "p" will never match "SUPPRESS_PTR" and optimize the if{} block out. This leads to segfaults in programs calling vfscanf(3) and vfwscanf(3) with just the format string (no arguments following it).
The following softwares were reported to abort with segmentation fault and this patch fixes it: o cmake o smartd o devel/ORBit2
dim@ opened an LLVM PR to discuss this clang optimization: http://llvm.org/bugs/show_bug.cgi?id=12656
Tested by: bsam@
|
#
234825 |
|
30-Apr-2012 |
das |
Fix a bug in *wscanf's handling of non-wide %s, %c, and %[ conversions. Both the specification and the documentation say the width is interpreted as the max number of wide characters to read, but the implementation was interpreting it as the number of bytes to convert. (See also r105317.)
This change has security implications for any applications that depend on the buggy behavior, but the impact in practice is probably nil. Any such application would already be buggy on other platforms that get the semantics right. Also, these conversions are rarely used; %ls, %lc, and %l[ are more appropriate.
|
#
234588 |
|
22-Apr-2012 |
das |
Bugfix: Include whitespace characters in the count of the number of characters read.
|
#
234586 |
|
22-Apr-2012 |
das |
Bugfix: %n doesn't count as a conversion, so sscanf("abc", "ab%ncd", &i) returns EOF, not 0.
|
#
234585 |
|
22-Apr-2012 |
das |
Refactor scanf to improve modularity. Conversions are now performed by separate conversion functions. This will hopefully make bugs more noticeable (I noticed several already) and provide opportunities to reduce code duplication.
|
#
227753 |
|
20-Nov-2011 |
theraven |
Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a load of _l suffixed versions of various standard library functions that use the global locale, making them take an explicit locale parameter. Also adds support for per-thread locales. This work was funded by the FreeBSD Foundation.
Please test any code you have that uses the C standard locale functions!
Reviewed by: das (gdtoa changes) Approved by: dim (mentor)
|
#
187422 |
|
19-Jan-2009 |
das |
- Add support for multibyte decimal_point encodings, e.g., U+066B. A forthcoming gdtoa import is needed to make this fully work. - Improve the way "nan(...)" is parsed.
|
#
174495 |
|
09-Dec-2007 |
das |
Remove some test instrumentation. (The Symbol.map changes broke it anyway.)
|
#
165903 |
|
09-Jan-2007 |
imp |
Per Regents of the University of Calfornia letter, remove advertising clause.
# If I've done so improperly on a file, please let me know.
|
#
157381 |
|
01-Apr-2006 |
phk |
Add missing #if's for NO_FLOATING_POINT
|
#
149313 |
|
20-Aug-2005 |
stefanf |
Include <sys/types.h> and <limits.h> ourselves, don't assume they are included through <pthread.h>.
gen/sem.c: Prerequisite for <_semaphore.h> net/getprotoent.c: USHRT_MAX net/getservent.c: USHRT_MAX stdio/ungetwc.c: MB_LEN_MAX stdio/vfwscanf.c: MB_LEN_MAX
|
#
128844 |
|
02-May-2004 |
obrien |
Remove bogus FBSDID.
|
#
128822 |
|
02-May-2004 |
das |
Merge vfscanf.c, v1.37: - s/#ifdef FLOATING_POINT/#ifndef NO_FLOATING_POINT/
|
#
128002 |
|
07-Apr-2004 |
tjr |
Prepare to handle trivial state-dependent encodings. Full support for state-dependent encodings with locking shifts will come later if there is demand for it.
|
#
125283 |
|
31-Jan-2004 |
das |
Merge vfscanf.c,v 1.35.
|
#
124175 |
|
06-Jan-2004 |
nectar |
Make intentions explicit with additional parenthesis.
|
#
122105 |
|
05-Nov-2003 |
tjr |
Pass NULL instead of a pointer to a zeroed mbstate_t object.
|
#
117250 |
|
05-Jul-2003 |
tjr |
Fix two incorrect uses of sizeof: we need to divide the size of the buffer by sizeof(wchar_t) to get the number of wide characters it contains. Remove the !hardway micro-optimisation from the CT_INT case to avoid having to fix it for wide characters.
|
#
117249 |
|
05-Jul-2003 |
tjr |
Merge recent floating point conversion changes from vfscanf.c.
|
#
106282 |
|
01-Nov-2002 |
tjr |
No need to include floatio.h here: vfscanf() no longer uses anything it defines.
|
#
105317 |
|
17-Oct-2002 |
tjr |
The field width for single-byte string conversions (%c, %s, %[) is the maximum number of bytes that may be stored in the array, not the maximum number of wide characters to read. The wording of the standard unfortunately does not make this clear.
|
#
103890 |
|
24-Sep-2002 |
tjr |
Remove an unneeded call to _sfrefill() that was missed in the conversion from vfscanf() to vfwscanf(). It doesn't hurt to have it there, but it's redundant since __fgetwc() will refill the buffer if it needs to.
|
#
103856 |
|
23-Sep-2002 |
tjr |
Add implementations of wscanf() and related functions: fwscanf(), swscanf(), vfwscanf(), vswscanf(), vwscanf(). As the name suggests, these are wide- character versions of the scanf() family of functions.
|