mldonkey-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-bugs] [bug #16947] libmagic database parse problem


From: Carlo Caputo
Subject: [Mldonkey-bugs] [bug #16947] libmagic database parse problem
Date: Mon, 26 Jun 2006 21:32:49 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3

URL:
  <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=16947>

                 Summary: libmagic database parse problem
                 Project: mldonkey, a multi-networks file-sharing client
            Submitted by: zed9h
            Submitted on: Monday 06/26/2006 at 21:32
                Category: Core
                Severity: 3 - Normal
              Item Group: Segmentation Fault
                  Status: None
             Assigned to: None
             Open/Closed: Open
                 Release: cvs20060626
                 Release: None
        Operating System: Linux
         Binaries Origin: CVS / Self compiled
                CPU type: Intel x86

    _______________________________________________________

Details:

on slackware-10.2, file-4.17's libmagic is deployed without *.mgc binary
compiled databases and mldonkey at some point (not right away nor after some
download) fail to load the plain version of /etc/file/magic, but after
installing the same version of file(4.17) it succeeds loading
/usr/local/share/file/magic.mgc , the binary version.

I imagine it didn't segfault before because the memory corruption didn't go
far enough to cross the protection boundary, but even before this crach there
were severe instabilities, perhaps related.

note: the slackware version of /etc/file/magic have two entries more than the
official release (whole file attached):
$ diff -u5  /usr/local/share/file/magic /etc/file/magic
--- /usr/local/share/file/magic 2006-06-26 17:46:59.000000000 -0300
+++ /etc/file/magic    2006-05-19 00:10:53.000000000 -0300
@@ -3071,10 +3071,30 @@
 #
 0      string          RZIP            rzip compressed data
 >4     byte            x               - version %d
 >5     byte            x               \b.%d
 >6     belong          x               (%d bytes)
+
+# Supplementary magic data for the file(1) command to support
+# rzip(1).  The format is described in magic(5).
+#
+# Copyright (C) 2003 by Andrew Tridgell.  You may do whatever you want with
+# this file.
+#
+
+0      string          RZIP            rzip compressed data
+>4     byte            x               - version %d
+>5     byte            x               \b.%d
+>6     belong          x               (%d bytes)
+
+#------------------------------------------------------------------------------
+# zisofs: file(1) magic for zisofs/RockRidge compressed files
+#
+# from H. Peter Anvin <address@hidden> May 4, 2001
+#
+0      string  \x37\xE4\x53\x96\xC9\xDB\xD6\x07        zisofs/Rockridge
compressed file
+>8     lelong          x               - %d bytes

#------------------------------------------------------------------------------
 # Console game magic
 # Toby Deshane <address@hidden>
 #    ines:  file(1) magic for Marat's iNES Nintendo Entertainment System
 #           ROM dump format






    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Monday 06/26/2006 at 21:32  Name: magic  Size: 432.69KB   By: zed9h
/etc/file/magic (slackware-current [10.2 -&gt; 11.0]) 
<http://savannah.nongnu.org/bugs/download.php?file_id=10249>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=16947>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]