← Back to team overview

linuxdcpp-team team mailing list archive

[Bug 300268] Re: [ADC] crash on invalid utf-8 string (linux)

 

** Changed in: linuxdcpp
       Status: Fix Committed => Fix Released

** Tags added: adc charset core crash

-- 
You received this bug notification because you are a member of
Dcplusplus-team, which is subscribed to DC++.
https://bugs.launchpad.net/bugs/300268

Title:
  [ADC] crash on invalid utf-8 string (linux)

Status in DC++:
  Fix Released
Status in Linux DC++:
  Fix Released

Bug description:
  linuxdcpp rev 28 crashed when connect to ADC hub when hub sent MOTD to client. See in attachment. I think it connected with encoding MOTD file on hub. 
  ADC hub  uhub 0.2.3 .  adc://adc.volsk.san.ru:12000

  $ linuxdcpp
  Thrown: FileException: Could not open file
  Thrown: FileException: Could not open file
  Loading: Hash database
  Loading: Shared Files
  UnBZFilter end, 1597021/510485 = 3,1284
  Loading: Download Queue
  Skipping secure port: 0
  BufferedSocket::run() start 0x7f53f4042f50
  BufferedSocket::connect() 0x7f53f4042f50
  threadConnect adc.san.ru:10000
  Thrown: SocketException: Connection closed
  BufferedSocket::run() start 0x7f53f4086150
  BufferedSocket::connect() 0x7f53f4086150
  threadConnect adchub.death-squad.ro:1111
  BufferedSocket::run() start 0x7f53f40ae1d0
  BufferedSocket::connect() 0x7f53f40ae1d0
  threadConnect adc2.san.ru:10000
  Thrown: SocketException: В соединении отказано
  BufferedSocket::run() start 0x7f53f40b8ea0
  BufferedSocket::connect() 0x7f53f40b8ea0
  threadConnect adc3.san.ru:10000
  BufferedSocket::run() start 0x7f53f416f290
  BufferedSocket::connect() 0x7f53f416f290
  threadConnect adc.volsk.san.ru:1411
  Thrown: ParseException: Too short
  Invalid ADC command:
  BufferedSocket::run() start 0x7f53f43b3d30
  BufferedSocket::connect() 0x7f53f43b3d30
  threadConnect adc.volsk.san.ru:12000
  segmentation error