[runtime] mono_mmap_open_handle with null arg.
authorMarcos Henrich <marcos.henrich@xamarin.com>
Mon, 15 Jun 2015 16:16:04 +0000 (17:16 +0100)
committerMarcos Henrich <marcos.henrich@xamarin.com>
Mon, 15 Jun 2015 16:33:16 +0000 (17:33 +0100)
commit2b87ee1f69537d1c666bc01e032c4b7ce9d60d0f
treeb12fcbcfe43996887c96a2ad88e6042dcce99b84
parent4ccc225ba6976e06a9cfafb728eab11c8ee74e31
[runtime] mono_mmap_open_handle with null arg.

Fixes segmentation fault when mono_mmap_open_handle is called with a null mapName argument.
MemoryMappedFiles.CreateFromFile calls mono_mmap_open_handle, .NET implementation accepts a null mapName and CoreFX uses CreateFromFile with null mapName.

Fixes #30825 and #30741.
mono/metadata/file-mmap-posix.c