Package: ruby1.8
Version: 1.8.3-1
Severity: normal

Hello,

Found this one line patch in Fedora Core's development RPM to fix a
bug in 1.8.2 and 1.8.3 where memset() is being passed it's arguments
in the wrong order, causing it to write no bytes into the pointer.  I
wonder if this has an impact on the garbage collector, since the
pointed to space is not cleared out.

The source RPM is at

http://download.fedora.redhat.com/pub/fedora/linux/core/development/SRPMS/ruby-1.8.3-4.src.rpm

and here's the patch.

--- ruby-1.8.2.orig/ext/strscan/strscan.c       2004-02-19 21:30:26.000000000 
+0900
+++ ruby-1.8.2/ext/strscan/strscan.c    2005-03-22 19:31:24.000000000 +0900
@@ -176,7 +176,7 @@
     struct strscanner *p;
 {
     re_free_registers(&(p->regs));
-    memset(p, sizeof(struct strscanner), 0);
+    memset(p, 0, sizeof(struct strscanner));
     free(p);
 }

Regards,
Blair

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages ruby1.8 depends on:
ii  libc6                         2.3.5-6    GNU C Library: Shared libraries an
ii  libruby1.8                    1.8.3-1    Libraries necessary to run Ruby 1.

ruby1.8 recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to