Skip to content

Commit 48a2c94

Browse files
authored
fix unaligned memcpy in frozen serialize (#727)
1 parent 6f6e9b9 commit 48a2c94

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ endif()
2020
set(ROARING_LIB_NAME roaring)
2121
set(PROJECT_VERSION_MAJOR 4)
2222
set(PROJECT_VERSION_MINOR 3)
23-
set(PROJECT_VERSION_PATCH 7)
24-
set(ROARING_LIB_VERSION "4.3.7" CACHE STRING "Roaring library version")
23+
set(PROJECT_VERSION_PATCH 8)
24+
set(ROARING_LIB_VERSION "4.3.8" CACHE STRING "Roaring library version")
2525
set(ROARING_LIB_SOVERSION "18" CACHE STRING "Roaring library soversion")
2626

2727
option(ROARING_EXCEPTIONS "Enable exception-throwing interface" ON)

doxygen

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ PROJECT_NAME = "CRoaring"
4848
# could be handy for archiving the generated documentation or if some version
4949
# control system is used.
5050

51-
PROJECT_NUMBER = "4.3.7"
51+
PROJECT_NUMBER = "4.3.8"
5252

5353
# Using the PROJECT_BRIEF tag one can provide an optional one line description
5454
# for a project that appears at the top of each page and should give viewer a

include/roaring/roaring_version.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
// /include/roaring/roaring_version.h automatically generated by release.py, do not change by hand
33
#ifndef ROARING_INCLUDE_ROARING_VERSION
44
#define ROARING_INCLUDE_ROARING_VERSION
5-
#define ROARING_VERSION "4.3.7"
5+
#define ROARING_VERSION "4.3.8"
66
enum {
77
ROARING_VERSION_MAJOR = 4,
88
ROARING_VERSION_MINOR = 3,
9-
ROARING_VERSION_REVISION = 7
9+
ROARING_VERSION_REVISION = 8
1010
};
1111
#endif // ROARING_INCLUDE_ROARING_VERSION
12-
// clang-format on
12+
// clang-format on

src/roaring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3016,7 +3016,7 @@ void roaring_bitmap_frozen_serialize(const roaring_bitmap_t *rb, char *buf) {
30163016
uint16_t *key_zone = (uint16_t *)arena_alloc(&buf, 2 * ra->size);
30173017
uint16_t *count_zone = (uint16_t *)arena_alloc(&buf, 2 * ra->size);
30183018
uint8_t *typecode_zone = (uint8_t *)arena_alloc(&buf, ra->size);
3019-
uint32_t *header_zone = (uint32_t *)arena_alloc(&buf, 4);
3019+
char *header_zone = (char*)arena_alloc(&buf, 4);
30203020

30213021
for (int32_t i = 0; i < ra->size; i++) {
30223022
uint16_t count;

0 commit comments

Comments
 (0)