Don't pass NULL pointer to strcmp(). - Mailing list pgsql-hackers

From Xing Guo
Subject Don't pass NULL pointer to strcmp().
Date
Msg-id CACpMh+AyDx5YUpPaAgzVwC1d8zfOL4JoD-uyFDnNSa1z0EsDQQ@mail.gmail.com
Whole thread Raw
Responses Re: Don't pass NULL pointer to strcmp().
List pgsql-hackers
Hi hackers,

I found that there's a nullable pointer being passed to strcmp() and
can make the server crash. It can be reproduced on the latest master
branch by crafting an extension[1]. Patch for fixing it is attatched.

[1] https://github.com/higuoxing/guc_crash/tree/pg

-- 
Best Regards,
Xing

Attachment

pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: GUC names in messages
Next
From: Daniel Gustafsson
Date:
Subject: Re: GUC names in messages