Skip to content

ibase_param_info() / ibase_field_info() prints garbage with table names, field names > 31 chars #87

@mlazdans

Description

@mlazdans

Apparently XSQLVAR sqlname_length, relname_length, aliasname_length can be > 31 so using in such way is not safe, because corresponding buffer capacity is still 32 bytes:

add_index_stringl(return_value, 0, var->sqlname, var->sqlname_length);

Currently I got garbage printed but that's a potential segfault.

Image

Buffer are still null terminated.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions