mldonkey-bugs
[Top][All Lists]
Advanced

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

[Mldonkey-bugs] [bug #17063] Infinite recursion in commonHasher_c.c:tige


From: James Oakley
Subject: [Mldonkey-bugs] [bug #17063] Infinite recursion in commonHasher_c.c:tiger_tree_fd() when file size is less than 1024 bytes
Date: Sat, 8 Jul 2006 14:19:32 +0000
User-agent: Mozilla/5.0 (compatible; Konqueror/3.5; Linux; en_GB, en_US) KHTML/3.5.1 (like Gecko)

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

                 Summary: Infinite recursion in
commonHasher_c.c:tiger_tree_fd()  when file size is less than 1024 bytes
                 Project: mldonkey, a multi-networks file-sharing client
            Submitted by: jfunk
            Submitted on: Saturday 07/08/2006 at 14:19
                Category: Core
                Severity: 3 - Normal
              Item Group: Segmentation Fault
                  Status: None
             Assigned to: None
             Open/Closed: Open
                 Release: 2.7.7/CVS
                 Release: 2.7.7
        Operating System: Linux
         Binaries Origin: CVS / Self compiled
                CPU type: Intel x86

    _______________________________________________________

Details:

On startup I get a segfault if a file smaller than 1024 bytes is shared.
Here's part of the bt:

#0  0x083241af in tiger_tree_fd (fd=87, len=962, pos=0, block_size=0,
digest=0xb47d10bc "") at src/daemon/common/commonHasher_c.c:89
#1  0x08324204 in tiger_tree_fd (fd=87, len=962, pos=0, block_size=0,
digest=0xb47d113c "") at src/daemon/common/commonHasher_c.c:118
#2  0x08324204 in tiger_tree_fd (fd=87, len=962, pos=0, block_size=0,
digest=0xb47d11bc "") at src/daemon/common/commonHasher_c.c:118
#3  0x08324204 in tiger_tree_fd (fd=87, len=962, pos=0, block_size=0,
digest=0xb47d123c "") at src/daemon/common/commonHasher_c.c:118
#4  0x08324204 in tiger_tree_fd (fd=87, len=962, pos=0, block_size=0,
digest=0xb47d12bc "") at src/daemon/common/commonHasher_c.c:118
#5  0x08324204 in tiger_tree_fd (fd=87, len=962, pos=0, block_size=0,
digest=0xb47d133c "") at src/daemon/common/commonHasher_c.c:118
#6  0x08324204 in tiger_tree_fd (fd=87, len=962, pos=0, block_size=0,
digest=0xb47d13bc "") at src/daemon/common/commonHasher_c.c:118


This goes on indefinitely until the segfault. Looking at the code, it appears
that you're not handling the case when 'block_size' < BLOCK_SIZE.






    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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