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

Commitcad2207

Browse files
committed
Fix bogus size calculation introduced by commitcc5f813.
The elements of RecordCacheArray are TupleDesc, not TupleDesc *.Those are actually the same size, so that this error is harmless,but it's still wrong --- and it might bite us someday, if TupleDescever became a struct, say.Per Coverity.
1 parent936df5b commitcad2207

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/utils/cache/typcache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,7 @@ ensure_record_cache_typmod_slot_exists(int32 typmod)
13861386
RecordCacheArray= (TupleDesc*)repalloc(RecordCacheArray,
13871387
newlen*sizeof(TupleDesc));
13881388
memset(RecordCacheArray+RecordCacheArrayLen,0,
1389-
(newlen-RecordCacheArrayLen)*sizeof(TupleDesc*));
1389+
(newlen-RecordCacheArrayLen)*sizeof(TupleDesc));
13901390
RecordCacheArrayLen=newlen;
13911391
}
13921392
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp