Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd9963d9

Browse files
author
Maxim Orlov
committed
Fix varlena allocation to avoid garbage contents (part2).
1 parentf83b610 commitd9963d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/rum_ts_utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,7 @@ rum_extract_tsvector_internal(TSVectorvector,
11701170
* uncompressed positions. So allocate memory with a margin.
11711171
*/
11721172
posDataSize=VARHDRSZ+2*posVec->npos*sizeof(WordEntryPos);
1173-
posData= (bytea*)palloc(posDataSize);
1173+
posData= (bytea*)palloc0(posDataSize);
11741174

11751175
posDataSize=compress_pos(posData->vl_dat,posVec->pos,posVec->npos)+VARHDRSZ;
11761176
SET_VARSIZE(posData,posDataSize);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp