<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>20941</bug_id>
          
          <creation_ts>2009-08-03 19:16:55 +0400</creation_ts>
          <short_desc>uuid_functions.c: always overflow destination buffer</short_desc>
          <delta_ts>2009-08-03 20:14:44 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>FreeAdhocUDF</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="solo">solo</reporter>
          <assigned_to name="Nobody&apos;s working on this, feel free to take it">nobody</assigned_to>
          
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>95590</commentid>
    <comment_count>0</comment_count>
    <who name="solo">solo</who>
    <bug_when>2009-08-03 19:16:55 +0400</bug_when>
    <thetext>gcc conv_functions.c -Wall -fpic -O -c  -I/usr/include -o conv_functions.o
In file included from /usr/include/string.h:658,
                 from uuid_functions.c:26:
In function &apos;memset&apos;,
    inlined from &apos;guid_to__uuid&apos; at uuid_functions.c:135:
/usr/include/bits/string3.h:85: error: call to __builtin___memset_chk will always overflow destination buffer
make: *** [uuid_functions.o] Error 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95591</commentid>
    <comment_count>1</comment_count>
    <who name="solo">solo</who>
    <bug_when>2009-08-03 19:22:03 +0400</bug_when>
    <thetext>$ rpm -qa|fgrep FreeAdhocUDF
FreeAdhocUDF-0.0.0.20090128a-alt0.1

$ rpm -qa|fgrep firebird
firebird-utils-superserver-2.1.1.17910.0-alt4
firebird-server-superserver-2.1.1.17910.0-alt4
firebird-superserver-2.1.1.17910.0-alt4
...

$ fbsql.superserver -u SYSDBA -p masterkey localhost:/var/lib/firebird/test.fdb
Database:  localhost:/var/lib/firebird/test.fdb, User: SYSDBA
...
SQL&gt; SELECT F_UUID1RAND() FROM RDB$DATABASE;

F_UUID1RAND                          
==================================== 
f9b124c6-8040-11de-a3fb-8bd803f66b4c 

SQL&gt; SELECT F_UUID2UUIDCOMPR(&apos;f9b124c6-8040-11de-a3fb-8bd803f66b4c&apos;) FROM RDB$DATABASE;

F_UUID2UUIDCOMPR       
====================== 
Statement failed, SQLCODE = -902
Unable to complete network request to host &quot;localhost&quot;.
-Error reading data from the connection.
SQL&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95596</commentid>
    <comment_count>2</comment_count>
    <who name="solo">solo</who>
    <bug_when>2009-08-03 20:14:44 +0400</bug_when>
    <thetext>Patch: http://git.altlinux.org/people/solo/packages/?p=FreeAdhocUDF.git;a=commitdiff;h=f692c90fe3a301997ae2c1f1fb17b3c81b632ed8

$ rpm -qa|fgrep FreeAdhocUDF
FreeAdhocUDF-0.0.0.20090128a-alt2

$ rpm -qa|fgrep firebird
firebird-utils-superserver-2.1.1.17910.0-alt4
firebird-server-superserver-2.1.1.17910.0-alt4
firebird-superserver-2.1.1.17910.0-alt4
...

$ fbsql.superserver -u SYSDBA -p masterkey localhost:/var/lib/firebird/test.fdb
Database:  localhost:/var/lib/firebird/test.fdb, User: SYSDBA
...
SQL&gt; SELECT F_UUID1RAND() FROM RDB$DATABASE;

F_UUID1RAND                          
==================================== 
9a35adf4-8046-11de-9da5-9e6bfab97493 

SQL&gt; SELECT F_UUID2UUIDCOMPR(&apos;9a35adf4-8046-11de-9da5-9e6bfab97493&apos;) FROM RDB$DATABASE;

F_UUID2UUIDCOMPR       
====================== 
0SOzetR7CZbF5SU2OOBOro 

SQL&gt; SELECT F_UUIDCOMPR2UUID(&apos;0SOzetR7CZbF5SU2OOBOro&apos;) FROM RDB$DATABASE;

F_UUIDCOMPR2UUID                     
==================================== 
69a35adf4-8046-11de-9da59e6bfab97493 

SQL&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>