The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.12 / (download) - annotate - [select for diffs], Fri Oct 28 09:43:59 2022 UTC (7 months ago) by wiz
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, HEAD
Changes since 1.11: +7 -3 lines
Diff to previous 1.11 (colored)

put reallocarray() in the public namespace

reallocarray() will be part of the next POSIX release, see
https://austingroupbugs.net/view.php?id=1218

adapt an errno value to match POSIX expectations

As discussed on tech-userlevel

Revision 1.11 / (download) - annotate - [select for diffs], Fri Feb 26 19:25:12 2021 UTC (2 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.10: +6 -2 lines
Diff to previous 1.10 (colored)

arrange for tools build

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jan 4 20:57:29 2018 UTC (5 years, 4 months ago) by kamil
Branch: MAIN
CVS Tags: phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, 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, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp
Changes since 1.9: +4 -2 lines
Diff to previous 1.9 (colored)

Add bunch of missing includes of namespace.h in libc

The NetBSD Standard C Library uses internally some of its functions with
a mangled symbol name, usually "_symbol". The internal functions shall not
use the global (public) symbols.

This change eliminates usage of the global changes of the following symbols:
 - strlcat -> _strlcat
 - sysconf -> __sysconf
 - closedir -> _closedir
 - fparseln -> _fparseln
 - kill -> _kill
 - mkstemp -> _mkstemp
 - reallocarr -> _reallocarr
 - strcasecmp -> _strcasecmp
 - strncasecmp -> _strncasecmp
 - strptime -> _strptime
 - strtok_r -> _strtok_r
 - sysctl -> _sysctl
 - dlopen -> __dlopen
 - dlclose -> __dlclose
 - dlsym -> __dlsym

Sponsored by <The NetBSD Foundation>

Revision 1.9 / (download) - annotate - [select for diffs], Sat Oct 7 21:15:48 2017 UTC (5 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.8: +2 -15 lines
Diff to previous 1.8 (colored)

remove recallocarray

Revision 1.8 / (download) - annotate - [select for diffs], Sat Oct 7 19:38:35 2017 UTC (5 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.7: +15 -2 lines
Diff to previous 1.7 (colored)

add recallocarray

Revision 1.7 / (download) - annotate - [select for diffs], Wed Apr 6 11:07:58 2016 UTC (7 years, 1 month ago) by roy
Branch: MAIN
CVS Tags: 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-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.6: +11 -17 lines
Diff to previous 1.6 (colored)

Revert prior, no idea why it was causing me problems, but it no longer does.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Apr 5 15:01:26 2016 UTC (7 years, 1 month ago) by roy
Branch: MAIN
Changes since 1.5: +17 -10 lines
Diff to previous 1.5 (colored)

Stop calling reallocarr and just do the same bounds checking but without
messing around with copying pointers which was causing ssh to crash.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Jul 26 02:22:33 2015 UTC (7 years, 10 months ago) by kamil
Branch: MAIN
Changes since 1.4: +3 -2 lines
Diff to previous 1.4 (colored)

reallocarray(3) cleanup

Add missing NetBSD CVS Id
Don't define twice _OPENBSD_SOURCE

Revision 1.4 / (download) - annotate - [select for diffs], Tue Mar 10 13:05:13 2015 UTC (8 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.3: +4 -1 lines
Diff to previous 1.3 (colored)

Behave in an OpenBSD compatible way for 0.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Feb 17 20:44:42 2015 UTC (8 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.2: +34 -28 lines
Diff to previous 1.2 (colored)

use reallocarr()

Revision 1.2 / (download) - annotate - [select for diffs], Tue Feb 17 20:33:40 2015 UTC (8 years, 3 months ago) by joerg
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

Move reallocarray under _OPENBSD_SOURCE where it belongs.

Revision 1.1 / (download) - annotate - [select for diffs], Thu Feb 5 16:04:35 2015 UTC (8 years, 3 months ago) by christos
Branch: MAIN

Add and use reallocarray() to prevent a multiplication overflow in allocation.
Reported by Guido Vranken, thanks!

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>