I've just put a load of comments on the upstream bug

The short story is that a patch to 
   Xext/xres.c ResFindAllRes
to change

   counts[(type & TypeMask) -1]++
to
   if ((type & TypeMask)!=0) counts[(type & TypeMask) - 1]++;

stops the crash.

The longer story is, I don't think that case of a 0 type should be reached, but 
I don't know about the innards of X to be sure.
I've commented one case on the upstream bug and how to stop it, and also a 
suggestion to make it safer to stop it triggering.

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xorg-server in Ubuntu.
https://bugs.launchpad.net/bugs/1060059

Title:
  Xorg crashed with SIGABRT in ResFindAllRes()

To manage notifications about this bug go to:
https://bugs.launchpad.net/xorg-server/+bug/1060059/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp

Reply via email to