| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
This helps tools like scan-build, and follows the example of warningf()
and errorf(). ok anton@
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
this before previous release, and I plain forgot about it.
|
|
|
|
| |
ok mmcc@ a while ago
|
|
|
|
| |
ok nicm@
|
|
|
|
|
|
| |
the logic is already in aresize().
"Sure" nicm@
|
|
|
|
| |
Suggested by nicm@.
|
|
|
|
|
|
|
|
| |
never bite us.
Suggested by Theo Buehler, inspired by Bitrig's natano@.
ok tedu@
|
|
|
|
|
|
|
|
|
|
| |
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@.
|
| |
|
| |
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
| |
Replace with simple wrapper around malloc, at least this works,
and it's easier to debug anyways.
|
| |
|
| |
|
| |
|
|
|