git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH 0/2] commit: improve UTF-8 validation
@ 2013-06-29 17:39 brian m. carlson
  0 siblings, 0 replies; only message in thread
From: brian m. carlson @ 2013-06-29 17:39 UTC (permalink / raw)
  To: git; +Cc: gitster

This series contains a pair of patches that improve the validation of
the UTF-8 used in commit messages.  Invalid codepoints, such as
surrogates and guaranteed non-characters, are rejected, along with
overlong UTF-8 sequences.

brian m. carlson (2):
  commit: reject invalid UTF-8 codepoints
  commit: reject overlong UTF-8 sequences

 commit.c                   | 28 +++++++++++++++++++++++++---
 t/t3900-i18n-commit.sh     | 17 +++++++++++++++++
 t/t3900/UTF-8-invalid.txt  |  3 +++
 t/t3900/UTF-8-overlong.txt |  3 +++
 4 files changed, 48 insertions(+), 3 deletions(-)
 create mode 100644 t/t3900/UTF-8-invalid.txt
 create mode 100644 t/t3900/UTF-8-overlong.txt

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-06-29 17:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-29 17:39 [PATCH 0/2] commit: improve UTF-8 validation brian m. carlson

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).