summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2006-07-25 18:12:57 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2006-07-25 18:12:57 +0000
commitb40eb3d6627214a7e5a886f972022576799568ec (patch)
tree9158eadb70ce070919a1dac0fe8ba8521002f7f8 /apps/plugin.h
parente0d64b95db0664bcf374dc6c52707adfac910759 (diff)
downloadrockbox-b40eb3d6627214a7e5a886f972022576799568ec.zip
rockbox-b40eb3d6627214a7e5a886f972022576799568ec.tar.gz
rockbox-b40eb3d6627214a7e5a886f972022576799568ec.tar.bz2
rockbox-b40eb3d6627214a7e5a886f972022576799568ec.tar.xz
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 'apps/plugin.h')
-rw-r--r--apps/plugin.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index a663ce5..3cd3fa6 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -327,8 +327,8 @@ struct plugin_api {
/* unicode stuff */
const unsigned char* (*utf8decode)(const unsigned char *utf8, unsigned short *ucs);
unsigned char* (*iso_decode)(const unsigned char *iso, 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* (*utf8encode)(unsigned long ucs, unsigned char *utf8);
unsigned long (*utf8length)(const unsigned char *utf8);