Your message dated Sun, 05 Aug 2007 08:47:24 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#426355: fixed in libonig 5.9.0-0.1
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: libonig-dev
Version: 5.2.0-1
Severity: grave

The following (see below) simple C program produces a SEGV in
onig_new.  To see this, compile the code using, e.g., 

   gcc bug.c -lonig

and then run it:

   ./a.out

On my debian etch system, I see:

  Segmentation fault (core dumped)

I set the severity level to grave because this bug makes the library
unusable to me.

Valgrind shows where the error occurs:

==1902== Invalid read of size 4
==1902==    at 0x43F0025: (within /usr/lib/libonig.so.2.0.0)
==1902==    by 0x4402089: onigenc_unicode_apply_all_case_fold (in 
/usr/lib/libonig.so.2.0.0)
==1902==    by 0x43F09AD: (within /usr/lib/libonig.so.2.0.0)
==1902==    by 0x43F1A1D: (within /usr/lib/libonig.so.2.0.0)
==1902==    by 0x43F1B18: (within /usr/lib/libonig.so.2.0.0)
==1902==    by 0x43F171E: (within /usr/lib/libonig.so.2.0.0)
==1902==    by 0x43F1A1D: (within /usr/lib/libonig.so.2.0.0)
==1902==    by 0x43F1B18: (within /usr/lib/libonig.so.2.0.0)
==1902==    by 0x43F1CEE: onig_parse_make_tree (in /usr/lib/libonig.so.2.0.0)
==1902==    by 0x43F8921: onig_compile (in /usr/lib/libonig.so.2.0.0)

Here is the code to bug.c:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <oniguruma.h>
int main (int argc, char **argv)
{
   const UChar *pattern;
   OnigErrorInfo err_info;
   int status;
   regex_t *re;
   int i;
   
   for (i = 0; i < 2; i++)
     {
        pattern = (UChar *) "(?i)[a-z][a-z]+";
        status = onig_new (&re, pattern, pattern + strlen ((char *)pattern),
                           ONIG_OPTION_NONE, ONIG_ENCODING_UTF8,
                           ONIG_SYNTAX_PERL, &err_info);
        onig_free (re);
        if (status != ONIG_NORMAL)
          {
             fprintf (stderr, "onig_new failed\n");
             return 1;
          }
     }
   return 0;
}

Thanks,
--John


--- End Message ---
--- Begin Message ---
Source: libonig
Source-Version: 5.9.0-0.1

We believe that the bug you reported is fixed in the latest version of
libonig, which is due to be installed in the Debian FTP archive:

libonig-dev_5.9.0-0.1_i386.deb
  to pool/main/libo/libonig/libonig-dev_5.9.0-0.1_i386.deb
libonig2-dbg_5.9.0-0.1_i386.deb
  to pool/main/libo/libonig/libonig2-dbg_5.9.0-0.1_i386.deb
libonig2_5.9.0-0.1_i386.deb
  to pool/main/libo/libonig/libonig2_5.9.0-0.1_i386.deb
libonig_5.9.0-0.1.diff.gz
  to pool/main/libo/libonig/libonig_5.9.0-0.1.diff.gz
libonig_5.9.0-0.1.dsc
  to pool/main/libo/libonig/libonig_5.9.0-0.1.dsc
libonig_5.9.0.orig.tar.gz
  to pool/main/libo/libonig/libonig_5.9.0.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Laurent Bigonville <[EMAIL PROTECTED]> (supplier of updated libonig package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat, 04 Aug 2007 15:07:34 +0200
Source: libonig
Binary: libonig-dev libonig2 libonig2-dbg
Architecture: source i386
Version: 5.9.0-0.1
Distribution: unstable
Urgency: low
Maintainer: Max Kellermann <[EMAIL PROTECTED]>
Changed-By: Laurent Bigonville <[EMAIL PROTECTED]>
Description: 
 libonig-dev - Development files for libonig2
 libonig2   - Oniguruma regular expressions library
 libonig2-dbg - Debugging symbols for libonig2
Closes: 426355
Changes: 
 libonig (5.9.0-0.1) unstable; urgency=low
 .
   * Non-maintainer upload.
   * New upstream release (Closes: #426355)
   * debian/control:
     - Use binary:Version instead of Source-Version
   * debian/rules:
     - Don't hide make distclean error
     - Fix copy of config.{sub,guess}
     - Remove deprecated DH_COMPAT and use compat file instead
Files: 
 0a46096f04ac85adf0a14a0dab96c462 651 libs optional libonig_5.9.0-0.1.dsc
 8d0ef96e475e4f7edffe04b352f5c21b 585024 libs optional libonig_5.9.0.orig.tar.gz
 e75ec9cf3f00da417e001e8258d6a612 3373 libs optional libonig_5.9.0-0.1.diff.gz
 395009421d2188b1944b191e6eea428a 132494 libs optional 
libonig2_5.9.0-0.1_i386.deb
 de65ad609762ac846f7d03799f899356 143440 libdevel optional 
libonig2-dbg_5.9.0-0.1_i386.deb
 1cb3ae8c31fcd568d2ad60b747c9466f 183150 libdevel optional 
libonig-dev_5.9.0-0.1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGtK9L4VUX8isJIMARApKzAJ9O4F9EMYBrw9zXtL2nJHrWFHD5AACdF6NF
RhCrbPuGZeQu3E/XOmdD44o=
=7kXX
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to