diff options
author | Thomas Adam <thomas@xteddy.org> | 2020-06-02 14:01:17 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2020-06-02 14:01:17 +0100 |
commit | 049ccb4a4b63a83d4fa9e71cebeb458d86e61ae2 (patch) | |
tree | a965b3b41cd03bc8bfe1dba09e9d11033920bc93 /utf8.c | |
parent | 31a51cae1dc420281bd3c51c2f0521668ad4e25d (diff) | |
parent | 822ee4e0a64cd27c4668aed53f1284b257612dcb (diff) | |
download | rtmux-049ccb4a4b63a83d4fa9e71cebeb458d86e61ae2.tar.gz rtmux-049ccb4a4b63a83d4fa9e71cebeb458d86e61ae2.tar.bz2 rtmux-049ccb4a4b63a83d4fa9e71cebeb458d86e61ae2.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'utf8.c')
-rw-r--r-- | utf8.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -134,6 +134,8 @@ utf8_from_data(const struct utf8_data *ud, utf8_char *uc) union utf8_map m = { .uc = 0 }; u_int offset; + if (ud->width == 0) + goto fail; if (ud->width != 1 && ud->width != 2) fatalx("invalid UTF-8 width"); if (ud->size == 0) |