Cherry pick some fixes for buffer overflow bugs (#1037)
Cherry pick some fixes for buffer overflow bugs (#1037)


mono/SkiaSharp,mono/SkiaSharp,mono/SkiaSharp,mono/SkiaSharp,mono/SkiaSharp,mono/SkiaSharp,mono/SkiaSharp