[ruby-oci8-commit] [238] branches/ruby-oci8-1.0: * ext/oci8/oradate.c, ext/oci8/oranumber.c: fix SEGV bugs.

nobody at rubyforge.org nobody at rubyforge.org
Sat Jan 12 01:51:43 EST 2008


Revision: 238
Author:   kubo
Date:     2008-01-12 01:51:43 -0500 (Sat, 12 Jan 2008)

Log Message:
-----------
* ext/oci8/oradate.c, ext/oci8/oranumber.c: fix SEGV bugs.
    OraDate.new made a core dump on x86_64 linux.
    (This problem is reported by Alun Eyre.)

Modified Paths:
--------------
    branches/ruby-oci8-1.0/ChangeLog
    branches/ruby-oci8-1.0/ext/oci8/oradate.c
    branches/ruby-oci8-1.0/ext/oci8/oranumber.c

Modified: branches/ruby-oci8-1.0/ChangeLog
===================================================================
--- branches/ruby-oci8-1.0/ChangeLog	2008-01-08 14:33:01 UTC (rev 237)
+++ branches/ruby-oci8-1.0/ChangeLog	2008-01-12 06:51:43 UTC (rev 238)
@@ -1,3 +1,8 @@
+2008-01-12  KUBO Takehiro  <kubo at jiubao.org>
+	* ext/oci8/oradate.c, ext/oci8/oranumber.c: fix SEGV bugs.
+	    OraDate.new made a core dump on x86_64 linux.
+	    (This problem is reported by Alun Eyre.)
+
 2008-01-04  KUBO Takehiro  <kubo at jiubao.org>
 	* ext/oci8/define.c, lib/oci8.rb.in: support cursors in a result
 	    set without re-defining the define handle.

Modified: branches/ruby-oci8-1.0/ext/oci8/oradate.c
===================================================================
--- branches/ruby-oci8-1.0/ext/oci8/oradate.c	2008-01-08 14:33:01 UTC (rev 237)
+++ branches/ruby-oci8-1.0/ext/oci8/oradate.c	2008-01-12 06:51:43 UTC (rev 238)
@@ -45,7 +45,7 @@
     rb_raise(rb_eRangeError, "Out of range for second %d (expect 0 .. 59)", sec)
 
 
-static VALUE ora_date_s_allocate(klass)
+static VALUE ora_date_s_allocate(VALUE klass)
 {
   ora_date_t *od;
   return Data_Make_Struct(klass, ora_date_t, NULL, xfree, od);

Modified: branches/ruby-oci8-1.0/ext/oci8/oranumber.c
===================================================================
--- branches/ruby-oci8-1.0/ext/oci8/oranumber.c	2008-01-08 14:33:01 UTC (rev 237)
+++ branches/ruby-oci8-1.0/ext/oci8/oranumber.c	2008-01-12 06:51:43 UTC (rev 238)
@@ -30,7 +30,7 @@
   return ovn;
 }
 
-static VALUE ora_number_s_allocate(klass)
+static VALUE ora_number_s_allocate(VALUE klass)
 {
   ora_vnumber_t *ovn;
   return Data_Make_Struct(klass, ora_vnumber_t, NULL, xfree, ovn);




More information about the ruby-oci8-commit mailing list