-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
"test case"
{
"key" "some value\""
"foo" "bar"
}
See https://github.com/ValveResourceFormat/ValveKeyValue/tree/eof-unescape-bug
This throws:
ValveKeyValue.KeyValueException : Found end of file while trying to read token.
----> System.IO.EndOfStreamException : Attempted to read past the end of the stream.
Stack Trace:
KV1TextReader.ReadObject() line 50
KVSerializer.Deserialize(Stream stream, KVSerializerOptions options) line 44
EscapedQuoteNoEscapeTestCase.SetUp() line 21
RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
--EndOfStreamException
KV1TokenReader.Next() line 175
KV1TokenReader.ReadUntil(Char[] terminators) line 221
KV1TokenReader.ReadQuotedStringRaw() line 316
KV1TokenReader.ReadStringRaw() line 305
KV1TokenReader.ReadString() line 81
KV1TokenReader.ReadNextToken() line 64
KV1TextReader.ReadObject() line 42
\" causes it to trip up, it works with HasEscapeSequences: true. It's probably fine for this not to parse correctly, but I would at least expect the exception to be somewhat better than EOF
Starfelll