Closed yeggor closed 7 months ago
Thank you for the suggestion. The documentation shows the call as adler32(0L, Z_NULL, 0)
, so len
is not 1. The comment notes the rationale for the placement of the check, so it is all intentional. I am closing this pull request.
In the
len == 1
branch, thebuf
will be dereferenced before checking for anullptr