Guard against attempting to creating out-of-range spans in macOS FileSystemWatcher...
authorStephen Toub <stoub@microsoft.com>
Mon, 21 Oct 2019 22:13:35 +0000 (18:13 -0400)
committerGitHub <noreply@github.com>
Mon, 21 Oct 2019 22:13:35 +0000 (18:13 -0400)
commit8830130b93fafa268d25a10aa508de99177cf4c7
treee01cdcb08639a2c2483a307493844eeed6745de9
parentca9dae0c160cb9b620c7b9afa06d34cc566c6c69
Guard against attempting to creating out-of-range spans in macOS FileSystemWatcher (dotnet/corefx#41957)

* Guard against attempting to creating out-of-range spans in macOS FilesystemWatcher

Fixes https://github.com/dotnet/corefx/issues/40054

* Address PR feedback

Commit migrated from https://github.com/dotnet/corefx/commit/4277ccfa457d0dfad3fad00f8adbd27781b3bc57
src/libraries/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.OSX.cs