diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2006-07-25 18:12:57 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2006-07-25 18:12:57 +0000 |
commit | b40eb3d6627214a7e5a886f972022576799568ec (patch) | |
tree | 9158eadb70ce070919a1dac0fe8ba8521002f7f8 /firmware/include | |
parent | e0d64b95db0664bcf374dc6c52707adfac910759 (diff) |
Fixed unicode buffer overflow issue (metadata parser crashed with some
mp3 files).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10324 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/include')
-rw-r--r-- | firmware/include/rbunicode.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/include/rbunicode.h b/firmware/include/rbunicode.h index 0e12890736..66726d10b5 100644 --- a/firmware/include/rbunicode.h +++ b/firmware/include/rbunicode.h @@ -19,8 +19,8 @@ /* Encode a UCS value as UTF-8 and return a pointer after this UTF-8 char. */ unsigned char* utf8encode(unsigned long ucs, unsigned char *utf8); unsigned char* iso_decode(const unsigned char *latin1, unsigned char *utf8, int cp, int count); -unsigned char* utf16LEdecode(const unsigned char *utf16, unsigned char *utf8, unsigned int count); -unsigned char* utf16BEdecode(const unsigned char *utf16, unsigned char *utf8, unsigned int count); +unsigned char* utf16LEdecode(const unsigned char *utf16, unsigned char *utf8, int count); +unsigned char* utf16BEdecode(const unsigned char *utf16, unsigned char *utf8, int count); unsigned char* utf16decode(const unsigned char *utf16, unsigned char *utf8, unsigned int count); unsigned long utf8length(const unsigned char *utf8); const unsigned char* utf8decode(const unsigned char *utf8, unsigned short *ucs); |