Homec4science

Change "%s" in qsprintf to exclude non-BMP characters

Authored by epriestley <git@epriestley.com> on Feb 24 2014, 01:20.

Description

Change "%s" in qsprintf to exclude non-BMP characters

Summary:
Ref T1191. Make %s in qsprintf reject non-BMP characters. Introduce %B for escaping binary strings.

Basically, this just makes "yes, I want to put binary data in this column" explicit.

Test Plan: See next diff for test coverage in Phabricator.

Reviewers: btrahan, arice

Reviewed By: arice

CC: chad, arice, aran

Maniphest Tasks: T1191

Differential Revision: https://secure.phabricator.com/D8315

Details

Committed
epriestley <git@epriestley.com>Feb 24 2014, 01:20
Pushed
aubortMar 17 2017, 12:03
Parents
rPHU563e600eba85: Reject nonminmal representations of UTF8 at the beginning of the 3-byte BMP…
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHU5a9002ebed4f: Change "%s" in qsprintf to exclude non-BMP characters (authored by epriestley <git@epriestley.com>).Feb 24 2014, 01:20