avilib: prevent format buffer overflow

This commit is contained in:
Moritz Bunkus 2022-11-03 21:17:27 +01:00
parent 0cd6f01878
commit 9e065de814
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85

View File

@ -486,7 +486,7 @@ static int avi_add_odml_index_entry(avi_t *AVI, unsigned char *tag, long flags,
return -1;
for (audtr = 0; audtr < AVI->anum; audtr++) {
char aud[5];
char aud[14];
if (!AVI->track[audtr].audio_superindex) {
// not initialized -> no index
continue;