summaryrefslogtreecommitdiffstats
path: root/Source/cmListFileLexer.h
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2017-02-19 17:26:44 (GMT)
committerBrad King <brad.king@kitware.com>2017-02-27 14:14:28 (GMT)
commitded616bdad46a445ea7ae05d47ae8f32026b13b5 (patch)
treeba3a048d94b1aadb5fb728885fbd9b02bc691ba9 /Source/cmListFileLexer.h
parent32cb4172bd6b98810f9638076e978a6bc569f6ae (diff)
downloadCMake-ded616bdad46a445ea7ae05d47ae8f32026b13b5.zip
CMake-ded616bdad46a445ea7ae05d47ae8f32026b13b5.tar.gz
CMake-ded616bdad46a445ea7ae05d47ae8f32026b13b5.tar.bz2
cmListFileLexer: bail out on seek-errors
If we are given a FIFO, for example, we cannot seek back after trying to read a Byte-Order-Mark. Closes: #16607
Diffstat (limited to 'Source/cmListFileLexer.h')
-rw-r--r--Source/cmListFileLexer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmListFileLexer.h b/Source/cmListFileLexer.h
index c9fb6da..f243010a 100644
--- a/Source/cmListFileLexer.h
+++ b/Source/cmListFileLexer.h
@@ -32,6 +32,7 @@ struct cmListFileLexer_Token_s
enum cmListFileLexer_BOM_e
{
cmListFileLexer_BOM_None,
+ cmListFileLexer_BOM_Broken,
cmListFileLexer_BOM_UTF8,
cmListFileLexer_BOM_UTF16BE,
cmListFileLexer_BOM_UTF16LE,