On Thu, 16 Apr 2020 23:39:29 +0200, Ingo Schwarze wrote: > I believe the patch is correct and i'd like to commit it. > > I have tested all code path directly leading from gz_open() > into check_header(). > > However, i'm not quite sure how to test the call of check_header() > from gzread(). Marc, is that the fancy feature you are using > in packages? I'd hate breaking pkg_add(1), and so shortly before > lock even more so. Does anybody know how to test that code path, > and can anybody confirm that it still works as expected?
This looks correct to me. Modern versions of zlib behave similarly for an empty file. OK millert@ - todd