Instead of blindly trusting the first byte, decode UTF-8 safely.

This commit is contained in:
Anthony J. Bentley
2016-01-28 23:16:42 -07:00
parent e241137508
commit 330a39596c
2 changed files with 75 additions and 21 deletions

View File

@@ -18,6 +18,10 @@ released under the following license:
rgbfix was rewritten from scratch by Anthony J. Bentley, and is released
under the ISC license; see the source file for the text of the license.
The UTF-8 decoder in src/asm/charmap.c was written by Björn Höhrmann and is
released under the MIT license. The remainder of charmap.c was written by
stag019, and is released under the ISC license.
extern/err.c is derived from the Musl C library, http://www.musl-libc.org,
and is released under the MIT license.