comparison mp3.c @ 3540:3dfb35d2ac51 libavformat

All mp3 parsers are buggy fix 2 of n (out of array write, i suspect not exploitable)
author michael
date Fri, 04 Jul 2008 22:04:41 +0000
parents 4dee13c8073a
children bc473761b9e7
comparison
equal deleted inserted replaced
3539:4dee13c8073a 3540:3dfb35d2ac51
203 } 203 }
204 *q = '\0'; 204 *q = '\0';
205 break; 205 break;
206 206
207 case 3: /* UTF-8 */ 207 case 3: /* UTF-8 */
208 len = FFMIN(taglen, dstlen); 208 len = FFMIN(taglen, dstlen-1);
209 get_buffer(s->pb, dst, len); 209 get_buffer(s->pb, dst, len);
210 dst[len] = 0; 210 dst[len] = 0;
211 break; 211 break;
212 } 212 }
213 } 213 }