dds: validate compressed source buffer size