idec_dec.c: add missing WEBP_SELF_ASSIGN

Fixes coverity / static analysis warning:
Assigning "dec->alpha_data_size" to itself has no effect.

Missed in:
b81f4620 Fix -fbounds-safety errors in `dec`.

Change-Id: I0aa447dff47f1687bf1ef358a9d53f893b64bf68
This commit is contained in:
James Zern
2025-12-09 12:18:25 -08:00
parent 934b7d7448
commit d67d73bf5a

View File

@@ -155,7 +155,7 @@ static void DoRemap(WebPIDecoder* const idec, ptrdiff_t offset) {
if (NeedCompressedAlpha(idec)) {
ALPHDecoder* const alph_dec = dec->alph_dec;
dec->alpha_data += offset;
dec->alpha_data_size = dec->alpha_data_size;
WEBP_SELF_ASSIGN(dec->alpha_data_size);
if (alph_dec != NULL && alph_dec->vp8l_dec != NULL) {
if (alph_dec->method == ALPHA_LOSSLESS_COMPRESSION) {
VP8LDecoder* const alph_vp8l_dec = alph_dec->vp8l_dec;