]> wimlib.net Git - wimlib/commit
inode.c: do not create blob from zero-sized data buffer
authorEric Biggers <ebiggers3@gmail.com>
Sat, 30 May 2015 20:48:04 +0000 (15:48 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Sat, 30 May 2015 20:48:04 +0000 (15:48 -0500)
commit33cc99f8a087d4232085234aee3f3134e15d5905
tree108c3adfe5ffadbd91d7c3b3d464c65e57dbe9b7
parent1e8c8e5e43f2c34c0f692b444e0ad06825b8a3dd
inode.c: do not create blob from zero-sized data buffer

Moving forwards towards eliminating zero-size blobs: make
inode_add_stream_with_data() and inode_replace_stream_data() use a NULL
blob pointer for zero-length buffers.  Currently this can happen if a
Windows reparse point has no reparse data or if an empty named data
stream is created in a mounted WIM image.
src/inode.c