Skip to content

Commit

Permalink
checking....
Browse files Browse the repository at this point in the history
  • Loading branch information
smmathews-brandwatch committed Oct 11, 2023
1 parent 2c37f5c commit 7ae7cea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions roaringbitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,10 @@ roaringbitmap_out(PG_FUNCTION_ARGS) {
}

serializedbytes = PG_GETARG_BYTEA_P(0);
if((uintptr_t)serializedbytes % 32 != 0)
ereport(ERROR,
(errcode(ERRCODE_NULL_VALUE_NOT_ALLOWED),
errmsg("you're about to have trouble with 32 byte required alignment")));
r1 = roaring_bitmap_frozen_view(VARDATA(serializedbytes), VARSIZE(serializedbytes) - VARHDRSZ);
if (!r1)
ereport(ERROR,
Expand Down

0 comments on commit 7ae7cea

Please sign in to comment.