#
113f06a3 |
| 23-Jul-2019 |
christos <christos@NetBSD.org> |
PR/54399: Sören Tempel: Uninitialized memory access in libedit history. Initialize the buffer using calloc. While here change all malloc(a * sizeof(b)) to calloc(a, sizeof(b)). XXX: should fix reallo
PR/54399: Sören Tempel: Uninitialized memory access in libedit history. Initialize the buffer using calloc. While here change all malloc(a * sizeof(b)) to calloc(a, sizeof(b)). XXX: should fix realloc similarly.
show more ...
|
#
f04c2e3e |
| 29-Nov-2018 |
christos <christos@NetBSD.org> |
Fix off by one <tsahara at iij>
|
#
a2d6b270 |
| 09-May-2016 |
christos <christos@NetBSD.org> |
s/protected/libedit_private/g
|
#
39e1d6f1 |
| 11-Apr-2016 |
christos <christos@NetBSD.org> |
Fix indentation, Ingo Schwarze
|
#
469d44f8 |
| 11-Apr-2016 |
christos <christos@NetBSD.org> |
Get rid of private/public; keep protected (Ingo Schwarze)
|
#
0594af80 |
| 11-Apr-2016 |
christos <christos@NetBSD.org> |
Char -> wchar_t from Ingo Schwarze.
|
#
0aefc7f9 |
| 11-Apr-2016 |
christos <christos@NetBSD.org> |
more macro WIDECHAR undoing from Ingo Schwarze.
|
#
22383670 |
| 17-Feb-2016 |
christos <christos@NetBSD.org> |
whitespace and header sorting changes (Ingo Schwarze). No functional changes.
|
#
e84df91e |
| 16-Feb-2016 |
christos <christos@NetBSD.org> |
More header cleanups from Ingo Schwarze.
|
#
747f6811 |
| 16-Feb-2016 |
christos <christos@NetBSD.org> |
more include file cleanup (Ingo Schwarze)
|
#
aefc1e44 |
| 16-Feb-2016 |
christos <christos@NetBSD.org> |
From Ingo Scharze: Let "el.h" include everything needed for struct editline, and don't include that stuff multiple times. That also improves consistency, also avoids circular inclusions, and also ma
From Ingo Scharze: Let "el.h" include everything needed for struct editline, and don't include that stuff multiple times. That also improves consistency, also avoids circular inclusions, and also makes it easier to follow what is going on, even though not quite as nice. But it seems like the best we can do...
show more ...
|
#
f09cb8c6 |
| 16-Feb-2016 |
christos <christos@NetBSD.org> |
cleanup chartype.h includes (Ingo Schwarze)
|
#
40850369 |
| 16-Feb-2016 |
christos <christos@NetBSD.org> |
cleanup inclusion of histedit.h (Ingo Schwarze)
|
#
f54e4f97 |
| 14-Feb-2016 |
christos <christos@NetBSD.org> |
From Ingo Schwarze:
As we have seen before, "histedit.h" can never get rid of including the <wchar.h> header because using the data types defined there is deeply ingrained in the public interfaces o
From Ingo Schwarze:
As we have seen before, "histedit.h" can never get rid of including the <wchar.h> header because using the data types defined there is deeply ingrained in the public interfaces of libedit.
Now POSIX unconditionally requires that <wchar.h> defines the type wint_t. Consequently, it can be used unconditionally, no matter whether WIDECHAR is active or not. Consequently, the #define Int is pointless.
Note that removing it is not gratuitious churn. Auditing for integer signedness problems is already hard when only fundamental types like "int" and "unsigned" are involved. It gets very hard when types come into the picture that have platform-dependent signedness, like "char" and "wint_t". Adding yet another layer on top, changing both the signedness and the width in a platform- dependent way, makes auditing yet harder, which IMHO is really dangerous. Note that while removing the #define, i already found one bug caused by this excessive complication - in the function re_putc() in refresh.c. If WIDECHAR was defined, it printed an Int = wint_t value with %c. Fortunately, that bug only affects debugging, not production. The fix is contained in the patch.
With WIDECHAR, this doesn't change anything. For the case without WIDECHAR, i checked that none of the places wants to store values that might not fit in wint_t.
This only changes internal interfaces; public ones remain unchanged.
show more ...
|
#
6af8d673 |
| 11-Feb-2016 |
christos <christos@NetBSD.org> |
- Add some more Char casts - reduce ifdefs by providing empty defs for nls functions (Ingo Schwarze)
|
#
80e781ab |
| 06-Jul-2014 |
christos <christos@NetBSD.org> |
Bounds search for reallocated index, from OpenBSD via Andreas Fett
|
#
3d802cf5 |
| 16-Aug-2011 |
christos <christos@NetBSD.org> |
re-enable -Wconversion
|
#
b71bed95 |
| 29-Jul-2011 |
christos <christos@NetBSD.org> |
KNF return (\1); -> return \1;
|
#
98c7cbeb |
| 28-Jul-2011 |
christos <christos@NetBSD.org> |
term -> terminal XXX: need to rename key_ too.
|
#
34e53048 |
| 30-Dec-2009 |
christos <christos@NetBSD.org> |
Wide character support (UTF-8) from Johny Mattsson; currently disabled.
|
#
48753fbc |
| 29-May-2005 |
lukem <lukem@NetBSD.org> |
Update for recent parse__escape() prototype change
|
#
917b5f36 |
| 29-May-2005 |
christos <christos@NetBSD.org> |
PR/25694: Luke Mewburn: Don't abuse unconstify'ing a string and writing to it, because you'll core dump. Also remove extra const that gives pain to the irix compiler.
|
#
a9beb0e4 |
| 05-Dec-2003 |
lukem <lukem@NetBSD.org> |
Tokenization function enhancements: * Make tok_init(), tok_end(), tok_reset(), tok_line() and tok_str() publically available in <histedit.h> * Documented the public functions in editline(3) * Renam
Tokenization function enhancements: * Make tok_init(), tok_end(), tok_reset(), tok_line() and tok_str() publically available in <histedit.h> * Documented the public functions in editline(3) * Renamed tok_line() -> tok_str() * Added new tok_line() which takes a "const LineInfo *" instead of "const char *" (the former has "cursor" information), and optionally return the argv index ("int *cursorc") and offset within that index ("int *cursorv"). This means that completion routines can use the tokenization code to crack the line and easily find which word the cursor is at. (mmm, context sensitive completion :) * Fixed TEST/test.c when using "continuation" lines (unmatched quote or \ at EOL), and added some more DEBUG messages including highlighting where the cursor is (with a `_').
show more ...
|
#
d67d488e |
| 02-Nov-2003 |
christos <christos@NetBSD.org> |
Handle M- as escape. XXX: should probably select the meta-map instead. From Gerry Swislow gerry at certif com
|
#
378865a4 |
| 15-Oct-2003 |
christos <christos@NetBSD.org> |
don't limit ^c to alpha c, and add VIS_NOSLASH so that vis(3) does not produce \^c
|