Remove MAX_PATH usage in w32process (#16553)
commit5377f9655d24c3ff19545398f89df462c77589b3
authorRyan Lucia <rylucia@microsoft.com>
Tue, 3 Sep 2019 15:41:27 +0000 (3 11:41 -0400)
committerGitHub <noreply@github.com>
Tue, 3 Sep 2019 15:41:27 +0000 (3 11:41 -0400)
tree13c35a71fabfbbfda4be3c4110cdd5683359d743
parent98a4d5ec1eb2becf1d002a5fbb070f1079bc6fe4
Remove MAX_PATH usage in w32process (#16553)

* Remove MAX_PATH usage in w32process

* Fixes

* Shrink buffer temporarily

* More fixes

* Reset buffer size to 260

* Fix length check and add notes

* Actually free things

* Add tracing and zero len at start

* Typo

* Fix another leak

* Simplify logic
mono/metadata/w32process-internals.h
mono/metadata/w32process-unix.c
mono/metadata/w32process.c