[PATCH] Fix possible Uninitialized variables (parse_manifest.c)

From: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: [PATCH] Fix possible Uninitialized variables (parse_manifest.c)
Date: 2020-04-23 19:29:34
Message-ID: CAEudQArkskg8tLm0_CNnA6940w9_TNyoCX_HwYUCaajneY5faw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,
Per Coverity.

verify_manifest_checksum, declare and can utilize array of uint8, without
initializing it.
While here, I applied the quick exit technique, to avoid unnecessary
computations, if it is possible to avoid them.

regards,
Ranier Vilela

Attachment Content-Type Size
fix_uninitialized_array_parse_manifest.patch application/octet-stream 1.8 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2020-04-23 19:38:56 Re: HEAPDEBUGALL is broken
Previous Message Tom Lane 2020-04-23 19:28:40 Re: HEAPDEBUGALL is broken