Fix for fragile code in ltree/crc32.c

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Fix for fragile code in ltree/crc32.c
Date: 2026-08-19 00:05:29
Message-ID: 2cfbc37ae8deccd3825e36b7f31c391cbf8ff9b8.camel@j-davis.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


The buffer in ltree_crc32_sz() is more than large enough in practice,
but it didn't explicitly leave room for the NUL byte. Patch attached.

Regards,
Jeff Davis

Attachment Content-Type Size
v1-0001-ltree-crc32.c-fix-fragile-code.patch text/x-patch 1.3 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Xuneng Zhou 2026-08-19 00:16:07 Re: Fix a relcache reference leak in reorderbuffer.c
Previous Message surya poondla 2026-08-18 23:38:37 Re: pg_xmin_horizon: a system view of everything pinning the xmin horizon