From b40eb3d6627214a7e5a886f972022576799568ec Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Tue, 25 Jul 2006 18:12:57 +0000 Subject: 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 --- firmware/include/rbunicode.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/include/rbunicode.h') 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); -- cgit v1.2.3