media-converter: Don't panic on unknown tags for read-only DBs
CW-Bug-Id: #19516
This commit is contained in:
parent
58fa33d121
commit
5934b82eda
1 changed files with 5 additions and 0 deletions
|
@ -272,6 +272,11 @@ impl StreamArchive {
|
|||
match res {
|
||||
Ok(p) => {
|
||||
self.write_pos = p;
|
||||
if tag >= self.seen_blobs.len() &&
|
||||
self.file.metadata()?.permissions().readonly() {
|
||||
/* ignore unknown tags for read-only DBs, otherwise panic */
|
||||
continue;
|
||||
}
|
||||
self.seen_blobs[tag].insert(hash, payload_entry);
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue