The NetBSD Project

CVS log for src/lib/libc/stdlib/strfmon.c

[BACK] Up to [cvs.NetBSD.org] / src / lib / libc / stdlib

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.13 / (download) - annotate - [select for diffs], Mon Nov 27 23:54:28 2017 UTC (17 months, 3 weeks ago) by maya
Branch: MAIN
CVS Tags: phil-wifi-base, phil-wifi, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, HEAD
Changes since 1.12: +3 -4 lines
Diff to previous 1.12 (colored) to selected 1.4.4.1 (colored)

use calloc rather than malloc + memset 0

Revision 1.12 / (download) - annotate - [select for diffs], Mon Nov 27 22:43:07 2017 UTC (17 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.11: +13 -10 lines
Diff to previous 1.11 (colored) to selected 1.4.4.1 (colored)

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

Revision 1.10.24.1 / (download) - annotate - [select for diffs], Tue Aug 29 11:51:50 2017 UTC (20 months, 3 weeks ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.10: +50 -29 lines
Diff to previous 1.10 (colored) next main 1.11 (colored) to selected 1.4.4.1 (colored)

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.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Aug 16 13:53:20 2017 UTC (21 months, 1 week ago) by joerg
Branch: MAIN
Changes since 1.10: +50 -29 lines
Diff to previous 1.10 (colored) to selected 1.4.4.1 (colored)

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

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:05:25 2012 UTC (7 years, 1 month ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.8: +18 -11 lines
Diff to previous 1.8 (colored) next main 1.9 (colored) to selected 1.4.4.1 (colored)

sync with head

Revision 1.10 / (download) - annotate - [select for diffs], Wed Mar 21 14:19:15 2012 UTC (7 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, agc-symver-base, agc-symver
Branch point for: netbsd-8
Changes since 1.9: +12 -8 lines
Diff to previous 1.9 (colored) to selected 1.4.4.1 (colored)

unsigned char portability casts

Revision 1.9 / (download) - annotate - [select for diffs], Tue Mar 13 21:13:48 2012 UTC (7 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.8: +8 -5 lines
Diff to previous 1.8 (colored) to selected 1.4.4.1 (colored)

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@

Revision 1.8 / (download) - annotate - [select for diffs], Sun Aug 14 09:07:15 2011 UTC (7 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: yamt-pagecache
Changes since 1.7: +6 -7 lines
Diff to previous 1.7 (colored) to selected 1.4.4.1 (colored)

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

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jan 30 23:46:03 2009 UTC (10 years, 3 months ago) by lukem
Branch: MAIN
CVS Tags: matt-premerge-20091211, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored) to selected 1.4.4.1 (colored)

sign-compare fix

Revision 1.4.6.1 / (download) - annotate - [select for diffs], Tue Jun 3 20:47:08 2008 UTC (10 years, 11 months ago) by skrll
Branch: wrstuden-fixsa
Changes since 1.4: +8 -3 lines
Diff to previous 1.4 (colored) next main 1.5 (colored) to selected 1.4.4.1 (colored)

Sync with netbsd-4.

Revision 1.4.4.2 / (download) - annotate - [select for diffs], Mon Apr 7 13:14:45 2008 UTC (11 years, 1 month ago) by jdc
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base
Changes since 1.4.4.1: +8 -8 lines
Diff to previous 1.4.4.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

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.

Revision 1.4.14.2 / (download) - annotate - [select for diffs], Mon Apr 7 13:14:22 2008 UTC (11 years, 1 month ago) by jdc
Branch: netbsd-4-0
CVS Tags: netbsd-4-0-1-RELEASE
Changes since 1.4.14.1: +8 -8 lines
Diff to previous 1.4.14.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored) to selected 1.4.4.1 (colored)

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.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Mar 27 21:50:30 2008 UTC (11 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, hpcarm-cleanup-nbase, christos-time_t-nbase, christos-time_t-base, christos-time_t
Changes since 1.5: +8 -8 lines
Diff to previous 1.5 (colored) to selected 1.4.4.1 (colored)

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.

Revision 1.4.16.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:14:45 2008 UTC (11 years, 2 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.4: +8 -3 lines
Diff to previous 1.4 (colored) next main 1.5 (colored) to selected 1.4.4.1 (colored)

sync with head.

Revision 1.4.10.1 / (download) - annotate - [select for diffs], Sun Mar 23 00:40:26 2008 UTC (11 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.4: +8 -3 lines
Diff to previous 1.4 (colored) next main 1.5 (colored) to selected 1.4.4.1 (colored)

sync with HEAD

Revision 1.4.14.1 / (download) - annotate - [select for diffs], Wed Mar 19 19:15:01 2008 UTC (11 years, 2 months ago) by bouyer
Branch: netbsd-4-0
Changes since 1.4: +8 -3 lines
Diff to previous 1.4 (colored) to selected 1.4.4.1 (colored)

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.

Revision 1.4.4.1 / (download) - annotate - [selected], Wed Mar 19 19:13:21 2008 UTC (11 years, 2 months ago) by bouyer
Branch: netbsd-4
Changes since 1.4: +8 -3 lines
Diff to previous 1.4 (colored)

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.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Mar 18 18:16:08 2008 UTC (11 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: matt-armv6-nbase, keiichi-mipv6-base
Changes since 1.4: +8 -3 lines
Diff to previous 1.4 (colored) to selected 1.4.4.1 (colored)

Avoid integer overflow; reported by Maksymilian Arciemowicz.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Mar 19 01:50:49 2006 UTC (13 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-fixsa-base-1, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-base, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: wrstuden-fixsa, netbsd-4-0, netbsd-4, matt-armv6, keiichi-mipv6
Changes since 1.3: +4 -2 lines
Diff to previous 1.3 (colored) to selected 1.4.4.1 (colored)

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

Revision 1.3 / (download) - annotate - [select for diffs], Fri Dec 2 14:19:43 2005 UTC (13 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.2: +10 -10 lines
Diff to previous 1.2 (colored) to selected 1.4.4.1 (colored)

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

Revision 1.2 / (download) - annotate - [select for diffs], Tue Nov 29 03:12:00 2005 UTC (13 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.1: +5 -5 lines
Diff to previous 1.1 (colored) to selected 1.4.4.1 (colored)

WARNS=4

Revision 1.1 / (download) - annotate - [select for diffs], Sun Apr 3 20:09:29 2005 UTC (14 years, 1 month ago) by christos
Branch: MAIN
Diff to selected 1.4.4.1 (colored)

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

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>