mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 04:33:04 +01:00
Fix crash when reading json
This commit is contained in:
parent
cf3138f4f0
commit
5a99440969
@ -157,6 +157,11 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
|
||||
return null;
|
||||
}
|
||||
|
||||
if (startIndex + 3 + tag.Length > s.Length)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
var res = s.Substring(startIndex + 3 + tag.Length).Trim().TrimStart(':').TrimStart();
|
||||
if (res.StartsWith('"'))
|
||||
{ // text
|
||||
|
Loading…
Reference in New Issue
Block a user