AV in fbclient when reading blob stored in incompatible encoding
----------------------------------------------------------------

                 Key: CORE-5464
                 URL: http://tracker.firebirdsql.org/browse/CORE-5464
             Project: Firebird Core
          Issue Type: Bug
          Components: API / Client Library
    Affects Versions: 3.0.1, 4.0 Initial
            Reporter: Vlad Khorsun


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


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to