Re: prevent invalidly encoded input

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org>
Subject: Re: prevent invalidly encoded input
Date: 2007-09-12 03:27:12
Message-ID: 46E75C90.8080502@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Tom Lane wrote:
>
> So it looks like you need to recheck if unescape_single_char sees a
> high-bit-set char.
>
> You should take a second look at the COPY code to see if there's a
> similar case there --- I forget what it does with backslash followed
> by non-digit.
>
>

It's covered. Revised patch attached. I'll probably apply this some time
tomorrow.

cheers

andrew

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

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tatsuo Ishii 2007-09-12 03:43:56 Re: invalidly encoded strings
Previous Message Brendan Jurd 2007-09-12 03:15:29 Add function for quote_qualified_identifier?