On Tue, Dec 7, 2010 at 4:55 PM, Zsbán Ambrus <[email protected]> wrote: > I think I found a bug in rxvt-unicode-9.09 where an array is defined > as too small.
After some examination, I now believe this was the actual cause of the bug I mentioned in irc. The bug is that when I build rxvt-unicode-9.09 (with xft disabled and certain other configurations) on an x86 linux system with gcc 4.5.1, the foreground and background colors of the terminal are swapped. Gcc 4.5.1 with high optimizations (at least -O2) just generates some seemingly strange code when the init_vars method tries to set bits in the options array that are past the end of the array. This caused the reverseVideo option to be set where init_vars meant to set an option two bytes away. This explains nicely why the bug appeared to depend on optimizations and the version of gcc. Ambrus _______________________________________________ rxvt-unicode mailing list [email protected] http://lists.schmorp.de/cgi-bin/mailman/listinfo/rxvt-unicode
