Issue Details (XML | Word | Printable)

Key: CORE-5464
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Vlad Khorsun
Reporter: Vlad Khorsun
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Firebird Core

AV in fbclient when reading blob stored in incompatible encoding

Created: 19/Jan/17 10:40 PM   Updated: 02/Feb/17 08:48 AM
Component/s: API / Client Library
Affects Version/s: 4.0 Initial, 3.0.1
Fix Version/s: 3.0.2, 4.0 Alpha 1

QA Status: Done successfully


 Description  « Hide
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


 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.