https://issues.dlang.org/show_bug.cgi?id=13572
--- Comment #6 from Ketmar Dark <[email protected]> --- my understanding of @trusted (and @safe, for that matter) is that safety promise is nullified if someone passing invalid pointer to such functions. like, pass a slice created from arbitrary memory region to @safe function, and it *will* segfault. zlib stream functions holds the very same promise: until the passed pointers and sizes are valid, zlib will neither crash nor corrupt memory outsize the specified range. that's why i thought that it can be marked @trusted (and actulally does so in my own code). --
