fix: Initialize tail bytes in `trans_alpha` buffers

Although the arrays `info_ptr->trans_alpha` and `png_ptr->trans_alpha`
are allocated 256 bytes, only `num_trans` bytes are copied.
The remaining entries were left uninitialized. Set them to 0xff (fully
opaque) before copying, which matches the conventional treatment of
entries beyond `num_trans`.

This is a follow-up to the previous use-after-free fix.

Reported-by: Cosmin Truta <ctruta@gmail.com>
Reviewed-by: Cosmin Truta <ctruta@gmail.com>
Signed-off-by: Cosmin Truta <ctruta@gmail.com>
Bug: 496614216
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:735832705bce6de8ea2f60d2f9b8c125827c613a
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:d5220a78f2ab35f65fffaf7424a0af553f18d6bb
Merged-In: I4797759c9709950ba57edc4cfd75d7d19fbea295
Change-Id: I4797759c9709950ba57edc4cfd75d7d19fbea295
1 file changed