]> wimlib.net Git - wimlib/commit
Make stream_hash() return NULL for unhashed streams
authorEric Biggers <ebiggers3@gmail.com>
Sun, 21 Jan 2018 21:47:10 +0000 (13:47 -0800)
committerEric Biggers <ebiggers3@gmail.com>
Sun, 21 Jan 2018 21:47:10 +0000 (13:47 -0800)
commit1d4211457b5a3576353d325e3dbf7e7c745dd90c
tree95ed0464689b766731601006802e9f5a34a583aa
parent3770d244330395ed3325d8832d5eebb43ebfe980
Make stream_hash() return NULL for unhashed streams

Otherwise it will return a bogus value from the union with ->back_inode
and ->back_stream_id.  Most callers ensured this cannot happen, but a
couple did not.  It should be explicitly prevented or handled.
src/inode.c
src/solid.c
src/test_support.c