cmListFileLexer: use memcpy instead of strcpy to copy buffer contents to tokens

Authored by akellermann on Jul 27 2017, 10:28 PM.

Description

cmListFileLexer: use memcpy instead of strcpy to copy buffer contents to tokens

This fixes a crash when the input is garbage (e.g. binary file which
is not cmake code at all).

BUG: 363269
Differential Revision: https://phabricator.kde.org/D6924

Details

Committed
brauchJul 27 2017, 10:28 PM
Differential Revision
Restricted Differential Revision
Parents
R32:794e63d63ad9: Fix warning -Wimplicit-fallthrough
Branches
Unknown
Tags
Unknown