commit: reject invalid UTF-8 codepoints
authorbrian m. carlson <sandals@crustytoothpaste.net>
Thu, 4 Jul 2013 17:19:43 +0000 (17:19 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 Jul 2013 04:45:18 +0000 (21:45 -0700)
The commit code already contains code for validating UTF-8, but it does not
check for invalid values, such as guaranteed non-characters and surrogates. Fix
this by explicitly checking for and rejecting such characters.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found