[ADC] crash on invalid utf-8 string (linux)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DC++ |
Fix Released
|
High
|
Unassigned | ||
LinuxDC++ |
Fix Released
|
High
|
Steven Sheehy |
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.
$ 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:
BufferedSocket:
threadConnect adc.san.ru:10000
Thrown: SocketException: Connection closed
BufferedSocket:
BufferedSocket:
threadConnect adchub.
BufferedSocket:
BufferedSocket:
threadConnect adc2.san.ru:10000
Thrown: SocketException: В соединении отказано
BufferedSocket:
BufferedSocket:
threadConnect adc3.san.ru:10000
BufferedSocket:
BufferedSocket:
threadConnect adc.volsk.
Thrown: ParseException: Too short
Invalid ADC command:
BufferedSocket:
BufferedSocket:
threadConnect adc.volsk.
segmentation error
Changed in linuxdcpp: | |
assignee: | individ → nobody |
Changed in dcplusplus: | |
status: | Confirmed → Fix Committed |
Changed in dcplusplus: | |
status: | Fix Committed → Fix Released |
Changed in linuxdcpp: | |
assignee: | nobody → Steven Sheehy (steven-sheehy) |
milestone: | none → 1.1.0 |
status: | Confirmed → Fix Committed |
Changed in linuxdcpp: | |
status: | Fix Committed → Fix Released |
tags: | added: adc charset core crash |
[New Thread 0xb462db90 (LWP 7666)] :run() start 0x870b7d8 :connect( ) 0x870b7d8 san.ru: 12000
BufferedSocket:
BufferedSocket:
threadConnect adc.volsk.
Program received signal SIGSEGV, Segmentation fault. escape_ text () from /usr/lib/ libglib- 2.0.so. 0 escape_ text () from /usr/lib/ libglib- 2.0.so. 0 set_property (object=0x86d7ad8, prop_id=21, 0xb57cc214, pspec=0x83164c0) buildd/ gtk+2.0- 2.12.9/ gtk/gtkwidget. c:2447 libgobject- 2.0.so. 0 libgobject- 2.0.so. 0 widget_ set_tooltip_ text (widget=0x86d7ad8, buildd/ gtk+2.0- 2.12.9/ gtk/gtkwidget. c:9609 FUNCTION_ _ = "IA__gtk_ widget_ set_tooltip_ text" :setLabel_ gui (this=0x86e33a0, text=@0xb57cc340) .cc:87 :processGuiQueu e (this=0x8317e08) ager.cc: 181 :threadFunc_ gui (data=0x8317e08) ager.cc: 148 libglib- 2.0.so. 0 i686/cmov/ libpthread. so.0 i686/cmov/ libc.so. 6
[Switching to Thread 0xb57ccb90 (LWP 7659)]
0xb788f067 in g_markup_
(gdb) bt full
#0 0xb788f067 in g_markup_
No symbol table info available.
#1 0xb7c96b5f in gtk_widget_
value=
at /build/
saved_flags = <value optimized out>
tooltip_markup = (gchar *) 0x0
tooltip_text = (const gchar *) 0x86e9e50 "\b0\203��>\n"
widget = <value optimized out>
#2 0xb7918c26 in g_object_set_valist () from /usr/lib/
No symbol table info available.
#3 0xb79191e6 in g_object_set () from /usr/lib/
No symbol table info available.
#4 0xb7c8b031 in IA__gtk_
text=0x86ca1d4 "Hub: VOLSK - �������� ���")
at /build/
__PRETTY_
#5 0x080558d5 in BookEntry:
at linux/bookentry
child = (GtkWidget *) 0x8708810
len = -1250114808
#6 0x080aaaaf in Func1<Hub, std::string>::call (this=0x869b818)
at linux/func.hh:70
---Type <return> to continue, or q <return> to quit---
No locals.
#7 0x0814e4be in WulforManager:
at linux/wulforman
func = (FuncBase *) 0x869b818
#8 0x0814e567 in WulforManager:
at linux/wulforman
man = (WulforManager *) 0x8317e08
#9 0xb78b2d2f in ?? () from /usr/lib/
No symbol table info available.
#10 0xb7f5d4fb in start_thread () from /lib/tls/
No symbol table info available.
#11 0xb76b6e5e in clone () from /lib/tls/
No symbol table info available.
(gdb)