Guile Really-Improved 3 Window Manager Fork of i3-wm with guile configuration
Go to file
Orestis Floros d134745c4f Prevent access of freed workspace in _workspace_show
The bug triggers when _workspace_show calls tree_close_internal and
old == old_focus. Ie, when the old workspace was empty and needs to be
closed but then is accessed as output_push_sticky_windows's argument:
Breakpoint 1, output_push_sticky_windows (to_focus=0x55555589c8a0) at ../../i3/src/output.c:102
102	                    con_move_to_workspace(current, visible_ws, true, false, current != to_focus->parent);
(gdb) print con_exists(to_focus)
$1 = false

The access violation can also be prevented by checking if
con_exists(old_focus) but it shouldn't be necessary: the old_focus
container can only be killed when it is an empty workspace.

With --enable-sanitizers this causes i3 to exit but with
--disable-sanitizers the access violation doesn't reliably cause a crash
and the con_move_to_workspace call continues with:
(gdb) print current != to_focus->parent
$2 = 1

Since current->type is CT_FLOATING_CON and to_focus->type is
CT_WORKSPACE, in this specific case ignore_focus would always be true.
So, in this case, passing NULL instead of old_focus to
output_push_sticky_windows doesn't change the behaviour of i3.

Fixes #3075.
2017-12-10 21:37:43 +02:00
.github Replace http:// with https:// where applicable 2017-09-24 10:19:07 +02:00
AnyEvent-I3 Implement the tick event 2017-09-30 11:41:57 +02:00
contrib dump-asy.pl: use layout instead of orientation for names (#3004) 2017-09-30 10:17:20 -07:00
debian update debian/changelog and release.sh after release (#2987) 2017-09-25 09:04:31 +02:00
docs Add '--release' flag for bindsym in the bar block 2017-12-08 12:16:22 +02:00
etc Merge pull request #3040 from jchook/next 2017-11-13 22:01:06 +01:00
i3-config-wizard Merge pull request #3058 from d-e-s-o/fix-FREE 2017-11-29 08:33:27 +01:00
i3-dump-log i3-dump-log: enable shmlog on demand 2017-11-26 18:07:02 +01:00
i3-input Merge pull request #3058 from d-e-s-o/fix-FREE 2017-11-29 08:33:27 +01:00
i3-msg no-op refactoring: make ipc_connect find socket path 2017-11-26 16:41:59 +01:00
i3-nagbar do not check for NULL in FREE macro 2017-11-23 15:41:33 -08:00
i3bar Add '--release' flag for bindsym in the bar block 2017-12-08 12:16:22 +02:00
include Add '--release' flag for bindsym in the bar block 2017-12-08 12:16:22 +02:00
libi3 Fixes #3072, Xft.dpi can be floating point 2017-12-09 15:12:25 +01:00
m4 Accept calling absolute path when building outsource 2016-11-09 22:37:21 +01:00
man add the kitty terminal in i3-sensible-terminal 2017-11-12 16:48:21 +08:00
parser-specs Add '--release' flag for bindsym in the bar block 2017-12-08 12:16:22 +02:00
share Move/rename config files/.desktop files into subdirs 2016-10-23 21:09:24 +02:00
src Prevent access of freed workspace in _workspace_show 2017-12-10 21:37:43 +02:00
testcases Prevent access of freed workspace in _workspace_show 2017-12-10 21:37:43 +02:00
travis tests: run under Xvfb by default (if available) (#2951) 2017-10-13 00:18:49 -07:00
.clang-format switch to clang-format-3.8 (#2547) 2016-11-08 13:46:43 -08:00
.editorconfig Add .editorconfig (see editorconfig.org) (#2943) 2017-09-13 18:38:27 +02:00
.gitignore Add files generated by make check in AnyEvent-I3/ to .gitignore (#2915) 2017-09-09 14:47:32 +02:00
.travis.yml travis: remove clang-analyze (#2917) 2017-09-09 18:30:17 +02:00
DEPENDS Replace http:// with https:// where applicable 2017-09-24 10:19:07 +02:00
I3_VERSION Set non-git version to 4.14-non-git. 2017-09-04 07:53:39 +02:00
LICENSE Remove copyright year range from License 2016-01-17 16:25:54 +05:30
Makefile.am Include AnyEvent-I3 directory in dist tarballs (#2916) 2017-09-09 14:22:16 +02:00
PACKAGE-MAINTAINER Update PACKAGE-MAINTAINER’s compilation instructions 2016-10-23 21:09:24 +02:00
README.md Add README.md (#2910) 2017-09-10 07:43:53 +02:00
RELEASE-NOTES-4.14 release i3 4.14 2017-09-04 07:53:25 +02:00
configure.ac release i3 4.14 2017-09-04 07:53:25 +02:00
generate-command-parser.pl Implement RandR 1.5 support (#2580) 2016-11-28 18:20:46 +01:00
i3-dmenu-desktop Replace http:// with https:// where applicable 2017-09-24 10:19:07 +02:00
i3-migrate-config-to-v4 Remove dead documentation for non-existing feature "stack-limit". 2015-06-09 23:13:15 +02:00
i3-save-tree Update "mark" to "marks" in i3-save-tree. (#2308) 2016-04-23 12:43:23 +01:00
i3-sensible-editor Fix name of mcedit (#2524) 2016-12-09 08:37:49 +01:00
i3-sensible-pager Quote the variables in i3-sensible-* correctly 2015-11-30 21:36:23 +00:00
i3-sensible-terminal add the kitty terminal in i3-sensible-terminal 2017-11-12 16:48:21 +08:00
logo.svg s/i3.zekjur.net/i3wm.org/g 2011-08-28 17:44:42 +02:00
pseudo-doc.doxygen Replace http:// with https:// where applicable 2017-09-24 10:19:07 +02:00
release.sh update debian/changelog and release.sh after release (#2987) 2017-09-25 09:04:31 +02:00

README.md

Logo i3: A tiling window manager

Build Status Issue Stats Pull Request Stats

i3 is a tiling window manager for X11.

For more information about i3, please see the project's website and online documentation.

For information about contributing to i3, please see CONTRIBUTING.md.