Memory leaks and an uninitialized part of utf8_data, from Patrick Palka.

This commit is contained in:
nicm
2015-11-20 22:02:54 +00:00
parent 40fefe2cbc
commit 933929cd62
3 changed files with 3 additions and 1 deletions

1
utf8.c
View File

@ -355,6 +355,7 @@ utf8_set(struct utf8_data *ud, u_char ch)
u_int i;
*ud->data = ch;
ud->have = 1;
ud->size = 1;
ud->width = 1;