Executing particular query on Firebird 2.5.2 x64 with Icu 5.2 causes 'string 
right truncation exception'
--------------------------------------------------------------------------------------------------------

                 Key: CORE-4689
                 URL: http://tracker.firebirdsql.org/browse/CORE-4689
             Project: Firebird Core
          Issue Type: Bug
          Components: Engine
    Affects Versions: 2.5.2 Update 1
         Environment: All Windows OS. Custom build of x64 fbembed.dll 2.5.2, 
linked to ICU 5.2
            Reporter: Hennadii
            Priority: Minor


In attach custom build fbembed.dll with all dependencies. Such configuration 
used in our environment.

Execution of query SELECT UPPER(_UTF8'ღøღღɑliciøʊs') finishes with error 
'string right truncation'.

Error caused by symbol 'ɑ' and different size of that symbol in UTF-8 
presentation.
lowercase:
http://www.fileformat.info/info/unicode/char/0251/index.htm
UTF-8 (hex) 0xC9 0x91 (c991)
uppercase:
http://www.fileformat.info/info/unicode/char/2c6d/index.htm
UTF-8 (hex) 0xE2 0xB1 0xAD (e2b1ad)

As of my further research, problem in file 'Firebird\core\src\jrd\evl.cpp:4060'
Size of memory for the destination (upper) string is the same as for source 
(input) string. Copying the result string finishes with error, which causes the 
error to be thrown to a client.

The root cause of the issue is, of course, changing ICU version. I think they 
had added support for the symbol in the newer version.


-- 
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

       

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to