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 serialization bug  (Read 2201 times)

Gnucco

  • Approved Newbie
  • *
  • Karma: 8
  • Offline Offline
  • Posts: 25
Tag serialization bug
« on: October 06, 2007, 12:18:30 PM »

I'm using cvs snapshot 20071001 on Linux (Ubuntu 7.04).

The following list contains all the tag names that aMule corrupts when writing to an outgoing packet.
Even if some of them is not important (ie: TAG_MEDIA_ARTIST), some other are very very important, like
 TAG_SOURCEIP and TAG_SOURCEPORT.

This interferes with kad source publishing protocol.

Tag names are correctly read from incoming packets, but outgoing packet contains corrupted data.

The bug is due to unicode/multibyte/utf8 conversion, but I don't have the right knowledge to fix it.

Here's the list.

 TAG_MEDIA_ARTIST
 TAG_MEDIA_ALBUM
 TAG_MEDIA_TITLE
 TAG_MEDIA_LENGTH
 TAG_MEDIA_BITRATE
 TAG_MEDIA_CODEC
 TAG_ENCRYPTION
 TAG_FILERATING
 TAG_BUDDYHASH
 TAG_CLIENTLOWID
 TAG_SERVERPORT
 TAG_SERVERIP
 TAG_SOURCEUPORT
 TAG_SOURCEPORT
 TAG_SOURCEIP
 TAG_SOURCETYPE
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Tag serialization bug
« Reply #1 on: October 06, 2007, 02:45:07 PM »

I fucking told everyone.
Logged