[ArchiveTools, FileTools] Pattern size safety of other archives off Zip

This commit is contained in:
Matt Nadareski
2017-10-18 22:39:24 -07:00
parent 3b250af990
commit be781c3d1c
2 changed files with 30 additions and 39 deletions

View File

@@ -769,6 +769,10 @@ namespace SabreTools.Library.Tools
input.Seek(offset, SeekOrigin.Begin);
}
}
catch (NotSupportedException)
{
Globals.Logger.Verbose("Stream does not support seeking. Stream position not changed");
}
catch (NotImplementedException)
{
Globals.Logger.Warning("Stream does not support seeking. Stream position not changed");
@@ -857,6 +861,10 @@ namespace SabreTools.Library.Tools
{
input.Seek(0, SeekOrigin.Begin);
}
catch (NotSupportedException)
{
Globals.Logger.Verbose("Stream does not support seeking. Stream position not changed");
}
catch (NotImplementedException)
{
Globals.Logger.Verbose("Stream does not support seeking. Stream position not changed");