Age | Commit message (Collapse) | Author |
|
The ReadFailureFails unittest is passing a nullptr as the buffer but
since the requested size to do IO operation is large, at some point it
hits the code where there is a pointer conversion + addition (on a
nullptr) and that is causing this error. So to fix this, basically,
pass a semi-valid pointer as the buffer instead of the nullptr. This
unit test is not testing the buffer itself anyway.
Bug: crbug.com/1047842
Test: USE="ubsan" FEATURES=test emerge-amd64-generic bsdiff
Change-Id: I7e4d4633953385a960e1ce87fd0c0bfa886b3df7
|
|
This prevents accidentally including a header file from another project
that happens to have the same name.
Test: `make checkbuild`; emerge-${BOARD} bsdiff
Bug: None
Change-Id: I8af132ed388738c30a8e3d7434de70b1e9d2f924
|
|
The Makefile didn't build libbspatch and libbsdiff. This patch includes
those libraries in the Makefile and moves the header files exposed by
those to an include/bsdiff subdirectory following the Android
convention so calling program can include "bsdiff/bspatch.h" avoiding
any collision with other libraries.
The Android.mk is updated to export the new include path while keeping
the old style until calling programs are updated.
The new Makefile allows Chromium OS to build the new libraries.
Bug: None
Test: FEATURES=test emerge-link bsdiff; sudo emerge bsdiff
Test: mmma external/bsdiff
Change-Id: I2ea9251eb224e9418fe236e4c4c9c5621853f590
|
|
If current position is not the beginning of a extent, it will read past
current extent length.
Bug: 24478450
Change-Id: I53e4f3e8257e80732280e68647ec89b5b604c3a3
TEST: Added a unittest.
|
|
Implemented a method to get the size of the FileInterface object
directly.
Bug: 24478450
Change-Id: I9aab80b33cc554551ce79bfee52e94e8e04775db
Test: make all test && ./unittest
|
|
This patch moves the exfile.cc implementation to a C++ class with an
abstract interface of a file. The implementation of exfile.cc, renamed
to extents_file.cc, now uses C++ STL classes and has unittests to test
its core functionality.
Bug: 24478450
Test: Unittests added. make all test -j5 && ./unittests
Change-Id: I8d8f07150ad2ea465c55b5178ca9fbab49185eea
|