[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    [Kwrite-devel] Bug#35812: More precision on X server crash
From:       Maciek Borowka <Maciej.BOROWKA () ifaedi ! insa-lyon ! fr>
Date:       2001-12-05 18:37:37
[Download RAW message or body]

I tried to analyse a little bit the problem and it seems that it's related
to the X protocol.
I tried to launch: 

konsole  -T  `perl -e 'print "A" x 100000;'`

and I got:

QWidget::setMaximumSize: (unnamed/QPopupMenu) The largest allowed size is 
(32767,32767)
QWidget::setMaximumSize: (unnamed/QPopupMenu) The largest allowed size is 
(32767,32767)
konsole: WARNING: KDE detected X Error: BadLength (poly request too large or 
internal Xlib length error) 16
  Major opcode:  8
konsole: WARNING: KDE detected X Error: BadIDChoice (invalid resource ID 
chosen for this connection) 14
  Major opcode:  1

which means that we have a buffer overflow in one of Poly* requests (probably 
PolyText8 or PolyText16) of X Protocol, which makes crash the X server.
It must be the same problem in kwrite as it writes the name of opened/created
file in the title bar of the window - I think, you could limit the number of 
caracters shown - should be quite easy to do...
Another discussion is why Xlib doesn't block your request, but send it to X 
server anyway... 

Voila, that's all

/Maciek

PS. Anyway, I love KDE - it rocks!

_______________________________________________
kwrite-devel mailing list
kwrite-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/kwrite-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic