Allocator sizeof operand mismatch (src/backend/regex/regcomp.c)

From: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Allocator sizeof operand mismatch (src/backend/regex/regcomp.c)
Date: 2022-08-06 12:12:53
Message-ID: CAEudQArXbHYYBtinMxtfQTn6_hg-4J9Sfwyi-BV8QoMx_Xt6Gg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

About the error:
Result of 'malloc' is converted to a pointer of type 'char', which is
incompatible with sizeof operand type 'struct guts'

The patch attached tries to fix this.

regards,
Ranier Vilela

Attachment Content-Type Size
001-fix-allocator-sizeof-operand-mismatch.patch text/x-patch 500 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2022-08-06 12:17:36 Re: [Code Comments]enum COPY_NEW_FE is removed
Previous Message Zhang Mingli 2022-08-06 11:20:25 [Code Comments]enum COPY_NEW_FE is removed