#
6c72b531 |
| 16-Jan-2018 |
jca <jca@openbsd.org> |
Introduce internal_warningf() and mark internal_errorf() as noreturn
This helps tools like scan-build, and follows the example of warningf() and errorf(). ok anton@
|
#
e1b6fda6 |
| 02-Nov-2017 |
tb <tb@openbsd.org> |
Switch calloc(3) back to malloc(3). The call to calloc was introduced by the plaintext history diff, but the code that may have depended on this was since removed from history.c. None of the code i
Switch calloc(3) back to malloc(3). The call to calloc was introduced by the plaintext history diff, but the code that may have depended on this was since removed from history.c. None of the code introduced between the plaintext history commit and now depends on calloc(3). This way we can again use malloc.conf(5)'s J option to recognize use of uninitialized memory.
ok jca
show more ...
|
#
526c36bd |
| 15-Aug-2017 |
jca <jca@openbsd.org> |
Remove expensive pointer check in afree()
The check added in rev 1.8 walks the whole freelist to catch cases where an unknown pointer is passed to afree(); but it can't catch cases whether the struc
Remove expensive pointer check in afree()
The check added in rev 1.8 walks the whole freelist to catch cases where an unknown pointer is passed to afree(); but it can't catch cases whether the struct link has been corrupted by an invalid memory write. And it becomes very expensive when you have lots of items in an area (for example with a huge HISTSIZE).
Discussed with & ok millert@ tb@
show more ...
|
#
57468064 |
| 29-May-2017 |
tb <tb@openbsd.org> |
Change the mmap(2)-based binary history file with lots of magic and a tendency for corruption to a simpler plaintext version.
To convert your current ksh history to plaintext, issue
fc -ln 1 | sed
Change the mmap(2)-based binary history file with lots of magic and a tendency for corruption to a simpler plaintext version.
To convert your current ksh history to plaintext, issue
fc -ln 1 | sed 's/^ //' > ~/ksh_hist.txt
before upgrading and use ksh_hist.txt as HISTFILE after the upgrade.
Original patch by marco in 2011. Ported to current during g2k16 by me. Testing, bugfixes and improvements in joint work with natano.
Additional testing by anton and mestre. Includes some tweaks by anton. Committing now to shake out remaining bugs before 6.2 is cut.
ok deraadt, mestre, anton, sthen
show more ...
|
#
59bf25f9 |
| 01-Jun-2016 |
espie <espie@openbsd.org> |
put this in the public domain as well. reminded by theo. we discussed this before previous release, and I plain forgot about it.
|
#
4a010e0c |
| 14-Dec-2015 |
tb <tb@openbsd.org> |
Move system headers from sh.h to those files that actually need them.
ok mmcc@ a while ago
|
#
b608f594 |
| 19-Oct-2015 |
mmcc <mmcc@openbsd.org> |
Apply style(9) to header includes.
ok nicm@
|
#
f05e5426 |
| 17-Oct-2015 |
mmcc <mmcc@openbsd.org> |
Change allocarray() to areallocarray(), a full reallocarray clone. All the logic is already in aresize().
"Sure" nicm@
|
#
4f0a1b90 |
| 17-Oct-2015 |
mmcc <mmcc@openbsd.org> |
Copy alloc()'s overflow check to aresize().
Suggested by nicm@.
|
#
a6a9e28a |
| 16-Oct-2015 |
mmcc <mmcc@openbsd.org> |
Move the overflow check to alloc() so that the link struct overhead can never bite us.
Suggested by Theo Buehler, inspired by Bitrig's natano@.
ok tedu@
|
#
322c3a8a |
| 16-Oct-2015 |
mmcc <mmcc@openbsd.org> |
Add allocarray(), an overflow-safe allocation function.
We avoided reallocation support because it demands more fancy footwork to deal with the prepended link struct.
This has been on my mind for a
Add allocarray(), an overflow-safe allocation function.
We avoided reallocation support because it demands more fancy footwork to deal with the prepended link struct.
This has been on my mind for a while, and a 2010 security review of mksh by the Android security team's Chris Palmer suggested it.
ok nicm@. Also discussed with millert@ and tedu@.
show more ...
|
#
11a785b6 |
| 21-Jul-2008 |
millert <millert@openbsd.org> |
Extra sanity checking for afree(); OK deraadt@ and pvalchev@
|
#
2c71ba4c |
| 19-Feb-2004 |
deraadt <deraadt@openbsd.org> |
basic knf
|
#
08d672a4 |
| 05-Aug-2003 |
millert <millert@openbsd.org> |
Don't allow alloc() and aresize() to fail. Their return value was only checked in two place (both in conjunction with str_save). Upon malloc/realloc failure we call internal_errorf() which pops thr
Don't allow alloc() and aresize() to fail. Their return value was only checked in two place (both in conjunction with str_save). Upon malloc/realloc failure we call internal_errorf() which pops throws and error and pops back to the last good state. OK deraadt@ pval@ fgs@ Original problem noted by mickey@
show more ...
|
#
5c55448c |
| 01-Mar-2002 |
espie <espie@openbsd.org> |
Kill hand-made memory allocation code, that is definitely buggy. Replace with simple wrapper around malloc, at least this works, and it's easier to debug anyways.
|
#
2dee7088 |
| 14-Jul-1999 |
millert <millert@openbsd.org> |
pdksh-5.2.14
|
#
6f49221c |
| 29-Jun-1998 |
deraadt <deraadt@openbsd.org> |
overflow fix; michael@cs.mun.ca
|
#
3b015934 |
| 25-Jun-1998 |
millert <millert@openbsd.org> |
pdksh-5.2.13 + local changes
|
#
7cb960a2 |
| 14-Aug-1996 |
downsj <downsj@openbsd.org> |
Import pdksh 5.2.7.
|