skia/skia/1e88fece617e4dfb6d1078cc4aa298d482b8558d
[docs] Fix column loop bound in SkImage_to_PPM examples
Both SkImage_to_PPM_binary and SkImage_to_PPM_ascii looped over x < src.height() instead of x < src.width(), overflowing the allocated SkData buffer in SkImage_to_PPM_binary when src.height() > src.width().
Bug: b/579332562
Change-Id: I2468013579bdf02468013579bdf02468013579bd
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/1415822
Reviewed-by: Thomas Smith <thomsmit@google.com>
2 files changed