]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
indent(1): Avoid out of bound access of array codebuf.
authorPedro F. Giffuni <pfg@FreeBSD.org>
Fri, 29 Jul 2016 16:09:05 +0000 (16:09 +0000)
committerPedro F. Giffuni <pfg@FreeBSD.org>
Fri, 29 Jul 2016 16:09:05 +0000 (16:09 +0000)
commit19fe172acee1d1d4a603bb670e619ae6afa1e21a
tree25791c80b753e790bc8bd4c0514b9fae512bb2b2
parent6c99513703708fe14e88b2bae7dc41d81c1a4aef
indent(1): Avoid out of bound access of array codebuf.

dump_line() requires s_code to be a string, because it will call count_spaces().

Differential Revision: https://reviews.freebsd.org/D6966 (Partial)
Obtained from: Piotr Stefaniak
usr.bin/indent/indent.c