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/



_______________________________________________
Mldonkey-bugs mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/mldonkey-bugs

Reply via email to