summary refs log tree commit diff
path: root/src/input.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2009-11-04 16:38:31 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2009-11-04 16:38:31 -0500
commit378b8cbb7cdc87b85a5b683000b28012eb058d3b (patch)
tree069b1bc7094f62f6581cbe51965852ff4d113317 /src/input.h
parent[CD] Lookup PWD after going through CDPATH (diff)
downloaddash-378b8cbb7cdc87b85a5b683000b28012eb058d3b.tar.gz
dash-378b8cbb7cdc87b85a5b683000b28012eb058d3b.zip
[PARSER] Fix syntax array size
On Mon, Sep 28, 2009 at 11:00:05AM +0200, Jim Meyering wrote:
> A DEL (0177, dec 127) byte in a here-document would cause dash to
> access uninitialized memory at the end of one of the syntax.c tables,
> since those tables are sized to accommodate a maximum index of
> BASESYNTAX + 126.  Make the generated tables one byte larger.
> printf ':<<\\E\n\200y\nE'|./dash
> * src/mksyntax.c (filltable): Use 258, not 257 as the size,
> so that BASESYNTAX(=130) + 127 is a valid index.
> (print): Likewise.
> Don't emit explicit array dimension in declaration.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
/commit/ui.c?h=1.8&id=872608e5c4fb814604a359a4b8b2f3bcf317cf0f&follow=1'>Factor out IRC formatting parsingJune McEnroe 2018-09-11Add /help equivalent to /manJune McEnroe 2018-09-11Don't render every PM as a pingJune McEnroe 2018-09-11Add urlOpenMatchJune McEnroe 2018-09-10Depend on man.sh for chroot.tar targetJune McEnroe 2018-09-10Set LESSSECURE=1 in man.shJune McEnroe 2018-09-10Add /man commandJune McEnroe 2018-09-10Install man page in chrootJune McEnroe 2018-09-10Install man pageJune McEnroe 2018-09-10Split keys into subsections and document colorsJune McEnroe 2018-09-10Add "blank" lines to chatte.1June McEnroe 2018-09-10Document key bindings in chatte.1June McEnroe 2018-09-08Document slash commands in chatte.1June McEnroe