Improve error handling in test modules: test_extensible, test_bitmapset - Mailing list pgsql-hackers

From Zsolt Parragi
Subject Improve error handling in test modules: test_extensible, test_bitmapset
Date
Msg-id CAN4CZFOTQXMZvuPxweO4Fm7+sjrPJUqU-JvYKETLBxuhqgbPjw@mail.gmail.com
Whole thread
Responses Re: index prefetching
List pgsql-hackers
Hello

The recently added test extensible module has a small oversight: it
lacks input validation, which made it easy to crash the backend with
invalid input with the test module loaded. While this doesn't seem
like a critical issue for a test module, the commit message also
mentions that this could be a template for extension developers, so I
think it is worth fixing.

There's a similar issue in test_bitmapset: that's an older commit, but
it shows the same issue.

I attached fixes to both as 0001/0002.

Attachment

pgsql-hackers by date:

Previous
From: Xuneng Zhou
Date:
Subject: Re: Implement waiting for wal lsn replay: reloaded
Next
From: Tom Lane
Date:
Subject: Re: Remove toast_max_chunk_size from control file