From: | Ranier Vilela <ranier(dot)vf(at)gmail(dot)com> |
---|---|
To: | Álvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
Cc: | Pg Hackers <pgsql-hackers(at)postgresql(dot)org>, Alexander Korotkov <akorotkov(at)postgresql(dot)org>, Maxim Orlov <orlovmg(at)gmail(dot)com>, Svetlana Derevyanko <s(dot)derevyanko(at)postgrespro(dot)ru> |
Subject: | Re: Simplify the logic a bit (src/bin/scripts/reindexdb.c) |
Date: | 2025-03-18 19:45:20 |
Message-ID: | CAEudQAr6OgJh2HfOvWki5jjDSaiPrz2=QB7cmOCw_sX3qUFg+A@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Em seg., 17 de mar. de 2025 às 16:17, Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
escreveu:
> Em sex., 7 de mar. de 2025 às 16:14, Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
> escreveu:
>
>>
>>
>> Em sex., 7 de mar. de 2025 às 16:01, Álvaro Herrera <
>> alvherre(at)alvh(dot)no-ip(dot)org> escreveu:
>>
>>> On 2025-Mar-07, Álvaro Herrera wrote:
>>>
>>> > Anyway, my version of this is attached. It fixes the problems with
>>> your
>>> > patch, but not Orlov's fundamental bug.
>>>
>>> And of course I forgot to actually attach the patch. Good grief.
>>>
>> Test with your v4 patch, on Windows 64 bits.
>>
> Rebased against 682c5be
> <https://github.com/postgres/postgres/commit/682c5be25c28192c56e9d5e2a9ca14673a2fcf4b>
>
Coverity reported two new warnings regarding reindexdb.
CID 1593911: (#1 of 1): Dereference after null check (FORWARD_NULL)
49. var_deref_op: Dereferencing null pointer indices_tables_cell.
CID 1593910: (#1 of 1): Explicit null dereferenced (FORWARD_NULL)
9. var_deref_op: Dereferencing null pointer process_list.
Attached is an attempt to fix.
best regards,
Ranier Vilela
Attachment | Content-Type | Size |
---|---|---|
fix-possible-dereference-reindex_db.patch | application/octet-stream | 2.2 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2025-03-18 19:50:20 | Re: Update Unicode data to Unicode 16.0.0 |
Previous Message | Peter Eisentraut | 2025-03-18 19:32:35 | Re: dblink: Add SCRAM pass-through authentication |