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

Commitfa2fc06

Browse files
committed
PL/Python: Fix type mixup
Memory was allocated based on the sizeof a type that was not the type ofthe pointer that the result was being assigned to. The types happen tobe of the same size, but it's still wrong.
1 parent629b3e9 commitfa2fc06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/pl/plpython/plpy_typeio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ PLy_output_tuple_funcs(PLyTypeInfo *arg, TupleDesc desc)
200200
if (arg->out.r.atts)
201201
PLy_free(arg->out.r.atts);
202202
arg->out.r.natts=desc->natts;
203-
arg->out.r.atts=PLy_malloc0(desc->natts*sizeof(PLyDatumToOb));
203+
arg->out.r.atts=PLy_malloc0(desc->natts*sizeof(PLyObToDatum));
204204
}
205205

206206
Assert(OidIsValid(desc->tdtypeid));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp