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
Bugs, which is subscribed to 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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to