[flang] Add length check so that memcmp() on source does not go past the end of input...
authorpeter klausler <pklausler@nvidia.com>
Mon, 9 Apr 2018 22:08:38 +0000 (15:08 -0700)
committerpeter klausler <pklausler@nvidia.com>
Mon, 9 Apr 2018 22:08:38 +0000 (15:08 -0700)
commit590afc60daffeddfe79a2bcaf6b2fcaac924c90d
treec4c46dad2e302d8475d18f6cdffd0341aa37ac72
parent8e7c0089a47de55361af803b8378fa9914893893
[flang] Add length check so that memcmp() on source does not go past the end of input and make valgrind complain.

Original-commit: flang-compiler/f18@475e9db03548bd45ae81201561579de3119d6587
Reviewed-on: https://github.com/flang-compiler/f18/pull/48
Tree-same-pre-rewrite: false
flang/lib/parser/parse-state.h
flang/lib/parser/token-parsers.h