mirror of
https://github.com/taglib/taglib.git
synced 2026-09-07 18:17:00 -04:00
IT: reject invalid files before saving (#1432)
This commit is contained in:
@@ -81,6 +81,11 @@ bool IT::File::save()
|
||||
debug("IT::File::save() - Cannot save to a read only file.");
|
||||
return false;
|
||||
}
|
||||
if(!isValid())
|
||||
{
|
||||
debug("IT::File::save() -- Trying to save invalid file.");
|
||||
return false;
|
||||
}
|
||||
seek(4);
|
||||
writeString(d->tag.title(), 25);
|
||||
writeByte(0);
|
||||
|
||||
Reference in New Issue
Block a user