Fix an assertion encountered in UntypedMDRVA::Copy().
Fix an assertion where a zero-length buffer was being passed to
UntypedMDRVA::Copy(). This occurred when WriteFile() was given a file whose
size was a multiple of the temporary buffer size. In this issue's case, the
procfs file "environ" happened to be 2032 bytes, while the temporary buffer
was 1016 bytes.
BUG=chromium-os:17032
TEST=Manually ran core2md.
Change-Id: I1704927e413d1c9e14f68dea93985bb6b57f08be
Reviewed-on: http://gerrit.chromium.org/gerrit/3358
Tested-by: Michael Krebs <mkrebs@chromium.org>
Reviewed-by: Michael Krebs <mkrebs@chromium.org>
1 file changed