Fix potential buffer overflow 77/281877/1 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/hotfix/20221116.105434 accepted/tizen/unified/20220927.132306 tizen_7.0_m2_release
authorjiyong.min <jiyong.min@samsung.com>
Fri, 23 Sep 2022 00:49:13 +0000 (09:49 +0900)
committerjiyong.min <jiyong.min@samsung.com>
Fri, 23 Sep 2022 00:49:13 +0000 (09:49 +0900)
commitf9273f24736968bae41d7405edede2e83873a7f3
treee8b5c7557c0970497e4483978873834a6643dcfa
parent0e572829b3e56cce3fff5ada22135b7763dbd3a6
Fix potential buffer overflow

- The 'jpeg_write_raw_data()' write 16 lines(heights) due to  DCT size.
- If the height is not a multiple of 16, use rounddown of a multiple of 16
  and remaining height.

Change-Id: Ic4a747817fb543e0d77ec7c764d4c8ad99e4411c
jpeg/mm_util_jpeg.c
packaging/libmm-utility.spec