aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Tag list read/write cycle corrupts data  (Read 2050 times)

Gnucco

  • Approved Newbie
  • *
  • Karma: 8
  • Offline Offline
  • Posts: 25
Tag list read/write cycle corrupts data
« on: October 04, 2007, 09:27:00 AM »

I read a tag list from a binary packet stored in a CMemFile object.

Writing the same taglist to another MemFile, the binary output is different from the original binary input.

To reproduce the bug, simply put the attached cpp file in src dir, and add

  #include "amule_taglist_selftest.cpp"

somewhere at the bottom of amule.cpp.

The attached source file contains two taglist dump captured directly from a live kad session.

IMHO, some sort of self-test could be added to amule startup.
« Last Edit: October 04, 2007, 08:43:25 PM by Gnucco »
Logged

Gnucco

  • Approved Newbie
  • *
  • Karma: 8
  • Offline Offline
  • Posts: 25
Re: Tag list read/write cycle corrupts data
« Reply #1 on: October 04, 2007, 11:11:36 AM »

I forgot to say that I used the CVS snapshot of 20070924.

I filed the bug report here:  http://bugs.amule.org/view.php?id=1188
Logged