|
Revision tags: release/12.4.0, release/13.1.0, release/12.3.0, release/13.0.0, release/12.2.0 |
|
| #
1a4531bc |
| 02-Sep-2020 |
John Baldwin <[email protected]> |
Compute the correct size of the string to move forward.
Previously this was counting the amount of spare room at the start of the buffer that the string needed to move forward and passing that as th
Compute the correct size of the string to move forward.
Previously this was counting the amount of spare room at the start of the buffer that the string needed to move forward and passing that as the number of bytes to copy to memmove rather than the length of the string to be copied.
In the strfmon test in the test suite this caused the memmove to overflow the allocated buffer by one byte which CHERI caught.
Reported by: CHERI Reviewed by: kevans Obtained from: CheriBSD MFC after: 1 week Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D26280
show more ...
|
|
Revision tags: release/11.4.0, release/12.1.0, release/11.3.0 |
|
| #
8c1c50ff |
| 19-Dec-2018 |
Conrad Meyer <[email protected]> |
Allow multi-byte thousands separators in strfmon(3)
PR: 234010 Reported by: Jon Tejnung <jon AT herrskogen.se> Reviewed by: yuripv Differential Revision: https://reviews.freebsd.org/D18605
|
|
Revision tags: release/12.0.0, release/11.2.0 |
|
| #
d915a14e |
| 25-Nov-2017 |
Pedro F. Giffuni <[email protected]> |
libc: further adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error p
libc: further adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts.
show more ...
|
|
Revision tags: release/10.4.0, release/11.1.0, release/11.0.1, release/11.0.0 |
|
| #
32223c1b |
| 30-Apr-2016 |
Pedro F. Giffuni <[email protected]> |
libc: spelling fixes.
Mostly on comments.
|
|
Revision tags: release/10.3.0, release/10.2.0, release/10.1.0 |
|
| #
0c029579 |
| 12-Jul-2014 |
Pedro F. Giffuni <[email protected]> |
strfmon: reduce unnecessary snprintf.
No need for the snprintf/asprintf dance; use fixed width formats.
Obtained from: NetBSD (CVS rev. 1.8) MFC after: 1 week
|
|
Revision tags: release/9.3.0, release/10.0.0, release/9.2.0, release/8.4.0, release/9.1.0, release/8.3.0_cvs, release/8.3.0, release/9.0.0 |
|
| #
3c87aa1d |
| 20-Nov-2011 |
David Chisnall <[email protected]> |
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
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)
show more ...
|
|
Revision tags: release/7.4.0_cvs, release/8.2.0_cvs, release/7.4.0, release/8.2.0, release/8.1.0_cvs, release/8.1.0, release/7.3.0_cvs, release/7.3.0 |
|
| #
3a921aa7 |
| 10-Feb-2010 |
Martin Cracauer <[email protected]> |
Fix PR http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/143350 Empty string test gone wrong.
Testing this requires that you have a locale that has the sign string unset but has int_n_sign_posn set (th
Fix PR http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/143350 Empty string test gone wrong.
Testing this requires that you have a locale that has the sign string unset but has int_n_sign_posn set (the default locale falls through to use "()" around negative numbers which is probably another bug).
I created that setup by hand and indeed without this fix negative numbers are put out as positive numbers (doesn't fall through to use "-" as default indicator).
Unfixed example in nl_NL.ISO8859-1 with lc->negative_sign set to empty string: strfmon(buf, sizeof(buf), "%-8i", -42.0); ==> example2: 'EUR 42,00' 'Eu 42,00'
Fixed: example2: 'EUR 42,00-' 'Eu 42,00-'
This file and suggested fix are identical in at least freebsd-8. Backport might be appropriate but some expert on locales should probably have a look at us defaulting to negative numbers in parenthesis when LC_* is default. That doesn't look right and is not what other OSes are doing.
PR: 143350 Submitted by: Corinna Vinschen Reviewed by: bug reporter submitted, tested by me
show more ...
|
|
Revision tags: release/8.0.0_cvs, release/8.0.0, release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0 |
|
| #
eff93c80 |
| 24-Apr-2008 |
Ruslan Ermilov <[email protected]> |
Stricter check for integer overflow.
|
| #
5b30d6ca |
| 19-Apr-2008 |
Ruslan Ermilov <[email protected]> |
Don't forget to free() currency_symbol and asciivalue when multiple conversion specifiers for them are present.
Submitted by: Maxim Dounin <[email protected]> Obtained from: NetBSD (partially) MFC
Don't forget to free() currency_symbol and asciivalue when multiple conversion specifiers for them are present.
Submitted by: Maxim Dounin <[email protected]> Obtained from: NetBSD (partially) MFC after: 3 days
show more ...
|
| #
3890416f |
| 19-Apr-2008 |
Ruslan Ermilov <[email protected]> |
Better strfmon(3) conversion specifiers sanity checking.
There were no checks for left and right precisions at all, and a check for field width had integer overflow bug.
Reported by: Maksymilian Ar
Better strfmon(3) conversion specifiers sanity checking.
There were no checks for left and right precisions at all, and a check for field width had integer overflow bug.
Reported by: Maksymilian Arciemowicz Security: http://securityreason.com/achievement_securityalert/53 Submitted by: Maxim Dounin <[email protected]> MFC after: 3 days
show more ...
|
| #
92226c92 |
| 13-Apr-2008 |
Xin LI <[email protected]> |
Use calloc() instaed of zeroing memory ourselves.
|
|
Revision tags: release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0, release/6.2.0_cvs, release/6.2.0, release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0 |
|
| #
61310091 |
| 12-Sep-2005 |
Stefan Farfeleder <[email protected]> |
Include a couple of headers to ensure consistency between the prototype and the function definition.
|
|
Revision tags: release/5.4.0_cvs, release/5.4.0, release/4.11.0_cvs, release/4.11.0, release/5.3.0_cvs, release/5.3.0, release/4.10.0_cvs, release/4.10.0, release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0, release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0 |
|
| #
85bebbc1 |
| 20-Mar-2003 |
Andrey A. Chernov <[email protected]> |
According to C99 decimal_point can't be empty
|
|
Revision tags: release/5.0.0_cvs, release/5.0.0 |
|
| #
7599ad30 |
| 03-Jan-2003 |
Tim J. Robbins <[email protected]> |
Remove unused variable: ntmp.
|
| #
bd26dcd1 |
| 12-Oct-2002 |
Tim J. Robbins <[email protected]> |
Fix a typo causing incorrect formatting for negative values in some locales (at least the French ones), a memory leak upon successful termination, a pointer arithmetic error causing heap corruption,
Fix a typo causing incorrect formatting for negative values in some locales (at least the French ones), a memory leak upon successful termination, a pointer arithmetic error causing heap corruption, and an off-by-one bug causing incorrect amounts of padding at the right of the value.
show more ...
|
| #
2e9212d9 |
| 11-Oct-2002 |
Tim J. Robbins <[email protected]> |
Save errno around calls to free(); at least some code paths clobber it and we are not interested in any errors it may report.
|
| #
2621915f |
| 11-Oct-2002 |
Tim J. Robbins <[email protected]> |
Use the new struct lconv members to determine how to format international monetary values.
|
| #
40a48101 |
| 11-Oct-2002 |
Tim J. Robbins <[email protected]> |
Non-negative amounts should not have an extra space in front of them when the `(' flag is used.
|
| #
284d5622 |
| 11-Oct-2002 |
Tim J. Robbins <[email protected]> |
"Left precision" and "right precision" are not flags, but separate parts of the format string that appear after the field width.
|
|
Revision tags: release/4.7.0_cvs |
|
| #
883738f2 |
| 20-Sep-2002 |
Mike Barcroft <[email protected]> |
Add restrict type-qualifier.
|
|
Revision tags: release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs |
|
| #
a82bbc73 |
| 28-May-2002 |
Alfred Perlstein <[email protected]> |
Assume __STDC__, remove non-__STDC__ code.
Submitted by: keramida
|
| #
333fc21e |
| 22-Mar-2002 |
David E. O'Brien <[email protected]> |
Fix the style of the SCM ID's. I believe have made all of libc .c's as consistent as possible.
|
|
Revision tags: release/4.5.0_cvs, release/4.4.0_cvs |
|
| #
52d6b430 |
| 11-Dec-2001 |
Alexey Zelkin <[email protected]> |
Add my e-mail to copyrights
|
| #
a5aecc77 |
| 17-Sep-2001 |
Mike Barcroft <[email protected]> |
style(9)
Silence from: phantom
|
| #
f6a9e03f |
| 06-Sep-2001 |
Alexey Zelkin <[email protected]> |
correctly wrap macros with { }
|