-
- Downloads
obj: fix potential NULL-dereference in ulog_store
In situations where the total number of entries to be stored in the ulog was an exact fit for the total capacity of the log, the algorithm was unnecessarily trying to zero-out a non-existent subsequent ulog. This triggered an ASSERT on debug builds and crashed on NULL-dereferencing.
Showing
- src/libpmemobj/memops.c 2 additions, 1 deletionsrc/libpmemobj/memops.c
- src/libpmemobj/ulog.c 11 additions, 4 deletionssrc/libpmemobj/ulog.c
- src/libpmemobj/ulog.h 2 additions, 1 deletionsrc/libpmemobj/ulog.h
- src/test/obj_list/obj_list_mocks.c 4 additions, 1 deletionsrc/test/obj_list/obj_list_mocks.c
- src/test/obj_memops/obj_memops.c 10 additions, 1 deletionsrc/test/obj_memops/obj_memops.c
Please register or sign in to comment