[sgen] Fix string size inconsistency between alloc/scan
commit16fa2e9b6d50a17c8434dbff9073edcf54cb77aa
authorVlad Brezae <brezaevlad@gmail.com>
Wed, 29 Aug 2018 10:43:03 +0000 (29 13:43 +0300)
committerVlad Brezae <brezaevlad@gmail.com>
Wed, 29 Aug 2018 10:46:53 +0000 (29 13:46 +0300)
tree93ab7011c65a3b135453584f27e17d6557222aa1
parent92df599f1392426c5efec23b5a9a4f23e5dcf14f
[sgen] Fix string size inconsistency between alloc/scan

This could lead to crashes when having strings with size at the LOS boundary.

https://github.com/mono/mono/issues/10309
mono/metadata/object-internals.h
mono/metadata/object.c
mono/metadata/sgen-client-mono.h