tudurom / windowchef

Window Chef is a stacking window manager that cooks windows with orders from the Waitron
https://tudorr.ro/software/windowchef/
ISC License
203 stars 14 forks source link

wm.c: fix invalid read error #4

Closed daniellockyer closed 7 years ago

daniellockyer commented 7 years ago

setup() would malloc based upon the size of conf.groups, which would be 0 as load_defaults() hadn't been called yet. As a result, change_nr_of_groups() (at line 1350) would cause an invalid read of size 1 as group_in_use has size 0.

tudurom commented 7 years ago

I highly appreciate that you took your time to check for errors in windowchef. Thanks you!

daniellockyer commented 7 years ago

@tudurom No problem - I have a few more to go yet!