forked from lix-project/lix
Lulu
51a5025913
There was a bug report about a potential call to `memcpy` with a null
pointer which is not reproducible:
lix-project/lix#492
This occurred in `src/libstore/filetransfer.cc` in `InnerSource::read`.
To ensure that this doesn't happen, an early return is added before
calling `memcpy` if the length of the data to be copied is 0.
This change also adds a test that ensures that when `InnerSource::read`
is called with an empty file, it throws an `EndOfFile` exception.
Change-Id:
|
||
---|---|---|
.. | ||
libcmd | ||
libexpr | ||
libexpr-support/tests | ||
libmain | ||
libstore | ||
libstore-support/tests | ||
libutil | ||
libutil-support/tests | ||
meson.build |