pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sergei Kornilov <sk@zsrv.org>
To: Thu Luu <ltthu2810@gmail.com>
To: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14998: XXS vulnerabilities in PostgreSQL 'utf8 4-byte truncation'
Date: Thu, 04 Jan 2018 13:09:31 +0300
Message-ID: <1246531515060571@web58o.yandex.ru> (raw)
In-Reply-To: <CAJ4jF7Vhc0b3gNHAJUMsNG8UDwKWyDGxrwVZNLH_RWGZFR8iug@mail.gmail.com>
References: <20180104041919.10227.4524@wrigleys.postgresql.org>
	<20180104042251.d2yqmgbnlkf67nny@alap3.anarazel.de>
	<CAJ4jF7V32fZdibLLjO5QnAXQt_rOimXxZjRGfR4OAHrg+8gWXg@mail.gmail.com>
	<CAJ4jF7Vhc0b3gNHAJUMsNG8UDwKWyDGxrwVZNLH_RWGZFR8iug@mail.gmail.com>

Hi!
I do not understand what your problem is. UTF8 character may be 4 bytes long by standart. Postgresql can store this characters. Mysql - for history reasons - treat utf8 as at most 3 byte characters and is not fully unicode compatible. In mysql 5.5 was added utf8mb4 charset which is full unicode compatible and can store 4 byte characters ( https://dev.mysql.com/doc/refman/5.5/en/charset-unicode-utf8mb4.html ). Discarding or correct storing 4-byte symbols is not vulnerabilities, just historical error in mysql.

PS: given link is broken due outdated https cert.




view thread (4+ messages)

Message-ID: <1246531515060571@web58o.yandex.ru>
Permalink:  ../1246531515060571@web58o.yandex.ru/
Also on:    postgresql.org/message-id/1246531515060571@web58o.yandex.ru

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: sk@zsrv.org, ltthu2810@gmail.com
  Subject: Re: BUG #14998: XXS vulnerabilities in PostgreSQL 'utf8 4-byte truncation'
  In-Reply-To: <1246531515060571@web58o.yandex.ru>
  References: <20180104041919.10227.4524@wrigleys.postgresql.org> <20180104042251.d2yqmgbnlkf67nny@alap3.anarazel.de> <CAJ4jF7V32fZdibLLjO5QnAXQt_rOimXxZjRGfR4OAHrg+8gWXg@mail.gmail.com> <CAJ4jF7Vhc0b3gNHAJUMsNG8UDwKWyDGxrwVZNLH_RWGZFR8iug@mail.gmail.com> <1246531515060571@web58o.yandex.ru>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox