]> git.sesse.net Git - vlc/blob - extras/contrib/src/Patches/libid3tag-0.15.1b-fix-CVE-2008-2109.patch
live: fix unsafe use of setlocale()
[vlc] / extras / contrib / src / Patches / libid3tag-0.15.1b-fix-CVE-2008-2109.patch
1 *** field.c     2003-04-19 09:14:33.000000000 +0900
2 --- field-patched.c     2008-01-13 16:08:22.000000000 +0900
3 ***************
4 *** 291,297 ****
5
6         end = *ptr + length;
7
8 !       while (end - *ptr > 0) {
9         ucs4 = id3_parse_string(ptr, end - *ptr, *encoding, 0);
10         if (ucs4 == 0)
11           goto fail;
12 --- 291,297 ----
13
14         end = *ptr + length;
15
16 !       while (end - *ptr > 0 && **ptr != '\0') {
17         ucs4 = id3_parse_string(ptr, end - *ptr, *encoding, 0);
18         if (ucs4 == 0)
19           goto fail;