command-name: Avoid read past end of input buffer in find_word().
authorBen Pfaff <blp@cs.stanford.edu>
Mon, 24 Sep 2018 02:36:22 +0000 (19:36 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Mon, 24 Sep 2018 05:51:31 +0000 (22:51 -0700)
commita02c8c084678a90529038bea3ce4bd6ca3ce80fe
tree0b2f0bb29420fa1af571be1ac29d45e81b71d810
parent812d0f700694bad063545e67186172bed6ebcfc0
command-name: Avoid read past end of input buffer in find_word().

When the input substring S is not null-terminated, find_word() could read
past its end looking for a non-digit.  This fixes the problem.
src/language/lexer/command-name.c