diff options
author | waker <wakeroid@gmail.com> | 2013-05-20 23:06:01 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2013-05-20 23:08:21 +0200 |
commit | 252d7cbf55664611b050a3232d0187465cc1cd9a (patch) | |
tree | eab1e651c83462ed303b0e97a0d1a1ef4ad37015 /plugins | |
parent | 076d8c0649473093d77c0b29d910850eaa53bab4 (diff) |
m3u: fixed buffer overflow
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/m3u/m3u.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/m3u/m3u.c b/plugins/m3u/m3u.c index 8a105e2f..d01b0079 100644 --- a/plugins/m3u/m3u.c +++ b/plugins/m3u/m3u.c @@ -149,7 +149,7 @@ load_m3u (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname, int *pab if (title[0]) { const char *cs = deadbeef->junk_detect_charset (title); if (cs) { - char tmp[2048]; + char tmp[1000]; if (deadbeef->junk_iconv (title, strlen (title), tmp, sizeof (tmp), cs, "utf-8") >= 0) { strcpy (title, tmp); } @@ -158,7 +158,7 @@ load_m3u (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname, int *pab if (artist[0]) { const char *cs = deadbeef->junk_detect_charset (artist); if (cs) { - char tmp[2048]; + char tmp[1000]; if (deadbeef->junk_iconv (artist, strlen (artist), tmp, sizeof (tmp), cs, "utf-8") >= 0) { strcpy (artist, tmp); } |