Menu

Commit [0e9292]  Maximize  Restore  History

libMirage: CSO filter: validate part size

Part size must be always either smaller than the declared block
size (compressed block) or equal to it (raw block). If not, return
error - because we allocate our I/O buffer based on the block size.

Fixes SF bug #119, which is triggered by part size ending up being
larger than the block size. Thanks to Andrea Fioraldi for report
and thorough analysis of the issue.

Rok Mandeljc Rok Mandeljc 2019-08-25

changed libmirage/filters/filter-cso/filter-stream.c
libmirage/filters/filter-cso/filter-stream.c Diff Switch to side-by-side view
Loading...