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


Revision 1.10 / (download) - annotate - [select for diffs], Thu Jan 4 20:57:29 2018 UTC (12 months, 2 weeks ago) by kamil
Branch: MAIN
CVS Tags: phil-wifi-base, phil-wifi, pgoyette-compat-base, 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.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 (15 months, 2 weeks 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 (15 months, 2 weeks 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 (2 years, 9 months 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-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 (2 years, 9 months 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 (3 years, 5 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 (3 years, 10 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 (3 years, 11 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 (3 years, 11 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 (3 years, 11 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>