Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AV in fbclient when reading blob stored in incompatible encoding [CORE5464] #5734

Closed
firebird-automations opened this issue Jan 20, 2017 · 4 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @hvlad

firebird>chcp 1251
Active code page: 1251

firebird>isql -ch win1251
Use CONNECT or CREATE DATABASE to specify a database
SQL> create database 'inet://c:\temp\blf.fdb' default character set win1251;
SQL> create domain d_int int;
SQL> comment on domain d_int is 'я пишу кириллицей';
SQL> commit;
SQL> SELECT RDB$FIELD_NAME, RDB$SYSTEM_FLAG, RDB$DESCRIPTION FROM RDB$FIELDS where RDB$DESCRIPTION is not null;

RDB$FIELD_NAME RDB$SYSTEM_FLAG RDB$DESCRIPTION
=============================== =============== =================
D_INT 0 0:3

RDB$DESCRIPTION:
я пишу кириллицей

SQL> exit;

Now connect using incompatible with WIN1251 encoding and try to read domain description:

firebird>isql inet://c:\temp\blf.fdb -ch win1250
Database: inet://c:\temp\blf.fdb, User: SYSDBA
SQL> SELECT RDB$FIELD_NAME, RDB$SYSTEM_FLAG, RDB$DESCRIPTION FROM RDB$FIELDS where RDB$DESCRIPTION is not null;

isql is crashed at this point

Commits: ef6d542 0fab1a8

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

assignee: Vlad Khorsun [ hvlad ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 3.0.2 [ 10785 ]

Fix Version: 4.0 Alpha 1 [ 10731 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Resolved [ 5 ]

QA Status: No test => Done successfully

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Closed [ 6 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment