Home | History | Annotate | Download | only in stdlib
History log of /src/lib/libc/stdlib/strfmon.c
RevisionDateAuthorComments
 1.22  27-Jun-2025  andvar Fix various typos, mainly in comments.
 1.21  27-Nov-2023  christos branches: 1.21.2;
Restore original code now that the broken test has been fixed.
 1.20  19-Nov-2023  christos minimize diffs with FreeBSD.
 1.19  28-Sep-2023  martin Fix padding for formats with mutliple padded values.
PR lib/57633, fix from FreeBSD.
 1.18  18-Aug-2022  christos fix whitespace prefix behavior
 1.17  17-Aug-2022  christos PR/56967: John Zaitseff: Reduce diff with FreeBSD, fixes various bugs.
 1.16  23-May-2022  andvar s/beggining/beginning/ in comments.
 1.15  19-Apr-2022  rillig lib: remove CONSTCOND comment

Since 2021-01-31, lint doesn't need it anymore for the common pattern of
'do ... while (0)'.
 1.14  05-Dec-2021  msaitoh s/supress/suppress/
 1.13  27-Nov-2017  maya use calloc rather than malloc + memset 0
 1.12  27-Nov-2017  christos Fix various bugs with strfmon:
- Avoid out of bounds access for the currency_symbol[3] when the symbol
is shorter (as it happens with the C locale where it is empty)
- Don't compare pointers to NUL, it is not helpful.
- Make the default sep_by_space 1 as suggested in:
https://ftp.gnu.org/old-gnu/Manuals/glibc-2.2.3/html_node/libc_111.html
- Use the correct number of bytes for memmove(3)

XXX: pullup-8
 1.11  16-Aug-2017  joerg Add missing strfmon_l. Noticed by Bruno Haible. Add test case.
 1.10  21-Mar-2012  christos branches: 1.10.24;
unsigned char portability casts
 1.9  13-Mar-2012  christos PR/45989: Martin Husemann: lint invocation does include -w only on i386

- turn lint -w for all the platforms after fixing the lint warnings.
- add _DIAGASSERTS() for casts that would assign values to types that
would not fit.
- change types, add casts
- change into ansii prototypes
- turn on _DIAGNOSTIC for libc (during current, to be eliminated for release
builds)

approved by core@
 1.8  14-Aug-2011  christos branches: 1.8.2;
no need for the snprintf/asprintf dance; use fixed width formats.
 1.7  30-Jan-2009  lukem sign-compare fix
 1.6  27-Mar-2008  christos Fix another integer overflow issue discovered by Maksymilian Arciemowicz.
On top of this, limit the range of getnumber to 0x00ffffff to make sure
that adding two of them does not cause an integer overflow.
 1.5  18-Mar-2008  christos Avoid integer overflow; reported by Maksymilian Arciemowicz.
 1.4  19-Mar-2006  christos branches: 1.4.4; 1.4.6; 1.4.10; 1.4.14; 1.4.16;
Coverity CID 1560: Don't leak memory when multiple currency symbols are present
 1.3  02-Dec-2005  yamt redo the previous; constify rather than making a string writable.
 1.2  29-Nov-2005  christos WARNS=4
 1.1  03-Apr-2005  christos Add FreeBSD's strfmon(3). From Rui Paulo. No bump this time. Take advantage
of the getpwent_r bump.
 1.4.16.1  24-Mar-2008  keiichi sync with head.
 1.4.14.2  07-Apr-2008  jdc Pull up revision 1.6 (requested by mjf in ticket #1115).

Fix another integer overflow issue discovered by Maksymilian Arciemowicz.
On top of this, limit the range of getnumber to 0x00ffffff to make sure
that adding two of them does not cause an integer overflow.
 1.4.14.1  19-Mar-2008  bouyer Pull up following revision(s) (requested by mjf in ticket #1102):
lib/libc/stdlib/strfmon.c: revision 1.5
Avoid integer overflow; reported by Maksymilian Arciemowicz.
 1.4.10.1  23-Mar-2008  matt sync with HEAD
 1.4.6.1  03-Jun-2008  skrll Sync with netbsd-4.
 1.4.4.2  07-Apr-2008  jdc Pull up revision 1.6 (requested by mjf in ticket #1115).

Fix another integer overflow issue discovered by Maksymilian Arciemowicz.
On top of this, limit the range of getnumber to 0x00ffffff to make sure
that adding two of them does not cause an integer overflow.
 1.4.4.1  19-Mar-2008  bouyer Pull up following revision(s) (requested by mjf in ticket #1102):
lib/libc/stdlib/strfmon.c: revision 1.5
Avoid integer overflow; reported by Maksymilian Arciemowicz.
 1.8.2.1  17-Apr-2012  yamt sync with head
 1.10.24.1  29-Aug-2017  martin Pull up following revision(s) (requested by joerg in ticket #215):
tests/lib/libc/locale/t_strfmon.c: revision 1.1
tests/lib/libc/locale/Makefile: revision 1.12
lib/libc/stdlib/strfmon.c: revision 1.11
distrib/sets/lists/debug/mi: revision 1.224
include/monetary.h: revision 1.3
distrib/sets/lists/tests/mi: revision 1.761
lib/libc/stdlib/strfmon.3: revision 1.6
lib/libc/stdlib/strfmon.3: revision 1.7
Add missing strfmon_l. Noticed by Bruno Haible. Add test case.
Typo fix.
 1.21.2.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed