prevent invalidly encoded input

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: "Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org>
Subject: prevent invalidly encoded input
Date: 2007-09-11 16:46:16
Message-ID: 46E6C658.2010001@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


Attached is a patch to the scanner and the COPY code that checks for
invalidly encoded data that can currently leak into our system via \
escapes in quoted literals or text mode copy fields, as recently
discussed. That would still leave holes via chr(), convert() and
possibly other functions, but these two paths are the biggest holes that
need plugging.

cheers

andrew

Attachment Content-Type Size
codfix1.patch text/x-patch 2.9 KB

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Florian G. Pflug 2007-09-11 17:32:11 Re: Final Thoughts for 8.3 on LWLocking and Scalability
Previous Message Jeff Davis 2007-09-11 16:15:21 Re: invalidly encoded strings