Smdn.LibHighlightSharp.Bindings.CodeGenerator.generateString seems to return an un-null-terminated string, may causing a crash.
Unhandled exception. System.ArgumentException: The string must be null-terminated.
at System.String.ThrowMustBeNullTerminatedString()
at System.String.Ctor(SByte* value)
at System.StubHelpers.CSTRMarshaler.ConvertToManaged(IntPtr cstr)
This does not occur 100% of the time and seems to depend on the process circumstances.
Confirmed that this occurs when OutputType is ESC_TRUECOLOR, but it is not tested that this occurs in other OutputTypes.
Smdn.LibHighlightSharp.Bindings.CodeGenerator.generateStringseems to return an un-null-terminated string, may causing a crash.This does not occur 100% of the time and seems to depend on the process circumstances.
Confirmed that this occurs when OutputType is
ESC_TRUECOLOR, but it is not tested that this occurs in other OutputTypes.