archive/iso9660: another fix for unaligned reads

Commit 79b2366387 added the field `skip`
to support unaligned reads, but set the `offset` field to a wrong
value.  This resulted in miscalculation of `remaining`, causing
an assertion failure.

The fix is to assign `offset` the correct value, but consider the
`skip` value in the assertion.

Closes https://github.com/MusicPlayerDaemon/MPD/issues/1067
This commit is contained in:
Max Kellermann
2021-02-07 21:24:19 +01:00
parent 4be76f3c8f
commit e7da5b104d
2 changed files with 4 additions and 2 deletions

2
NEWS
View File

@@ -1,6 +1,8 @@
ver 0.22.5 (not yet released)
* tags
- id: translate TPE3 to Conductor, not Performer
* archive
- iso9660: another fix for unaligned reads
* output
- httpd: error handling on Windows improved