History log of /netbsd-src/lib/libc/stdlib/strfmon.c (Results 1 – 21 of 21)
Revision Date Author Comments
# 82eb5ce2 27-Nov-2023 christos <christos@NetBSD.org>

Restore original code now that the broken test has been fixed.


# d5d5b722 19-Nov-2023 christos <christos@NetBSD.org>

minimize diffs with FreeBSD.


# d5535d78 28-Sep-2023 martin <martin@NetBSD.org>

Fix padding for formats with mutliple padded values.
PR lib/57633, fix from FreeBSD.


# d4169749 18-Aug-2022 christos <christos@NetBSD.org>

fix whitespace prefix behavior


# 5346bd15 17-Aug-2022 christos <christos@NetBSD.org>

PR/56967: John Zaitseff: Reduce diff with FreeBSD, fixes various bugs.


# a657a7c4 23-May-2022 andvar <andvar@NetBSD.org>

s/beggining/beginning/ in comments.


# 388550b0 19-Apr-2022 rillig <rillig@NetBSD.org>

lib: remove CONSTCOND comment

Since 2021-01-31, lint doesn't need it anymore for the common pattern of
'do ... while (0)'.


# 73b5f850 05-Dec-2021 msaitoh <msaitoh@NetBSD.org>

s/supress/suppress/


# a1f7eefb 27-Nov-2017 maya <maya@NetBSD.org>

use calloc rather than malloc + memset 0


# 91729e7f 27-Nov-2017 christos <christos@NetBSD.org>

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

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

show more ...


# 29f5b623 16-Aug-2017 joerg <joerg@NetBSD.org>

Add missing strfmon_l. Noticed by Bruno Haible. Add test case.


# d9285aa4 21-Mar-2012 christos <christos@NetBSD.org>

unsigned char portability casts


# c5e820ca 13-Mar-2012 christos <christos@NetBSD.org>

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 t

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@

show more ...


# 0461c078 14-Aug-2011 christos <christos@NetBSD.org>

no need for the snprintf/asprintf dance; use fixed width formats.


# 957ba389 30-Jan-2009 lukem <lukem@NetBSD.org>

sign-compare fix


# 23b2e3cd 27-Mar-2008 christos <christos@NetBSD.org>

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 ove

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.

show more ...


# 00f5c7fe 18-Mar-2008 christos <christos@NetBSD.org>

Avoid integer overflow; reported by Maksymilian Arciemowicz.


# 3040914c 19-Mar-2006 christos <christos@NetBSD.org>

Coverity CID 1560: Don't leak memory when multiple currency symbols are present


# e301b762 02-Dec-2005 yamt <yamt@NetBSD.org>

redo the previous; constify rather than making a string writable.


# 03256c6e 29-Nov-2005 christos <christos@NetBSD.org>

WARNS=4


# ada3b096 03-Apr-2005 christos <christos@NetBSD.org>

Add FreeBSD's strfmon(3). From Rui Paulo. No bump this time. Take advantage
of the getpwent_r bump.