]> git.sur5r.net Git - i3/i3/commit
Avoid use of uninitialized in init_dpi_end 2875/head
authorTheo Buehler <tb@openbsd.org>
Wed, 23 Aug 2017 13:48:58 +0000 (15:48 +0200)
committerTheo Buehler <tb@openbsd.org>
Wed, 23 Aug 2017 13:48:58 +0000 (15:48 +0200)
commitd29d908003b0acb0fa9fa0e9618186931423a20e
tree974d9d2aff72fba2a2688ff9603d46a01cc3c574
parentc40aaec7ca7e3bd151c221e07246d5e53d1f4d7a
Avoid use of uninitialized in init_dpi_end

If conn == NULL or display == NULL, init_dpi() jumps to init_dpi_end
before (declaring and) initializing resource. In init_dpi_end, there
is a free(resource) call conditionally on resource != NULL, so this
may lead to a bogus free. Found by clang -Wsometimes-uninitialized.
libi3/dpi.c