CVSROOT: /cvs Module name: src Changes by: an...@cvs.openbsd.org 2021/12/29 23:55:11
Modified files: sys/dev/wscons : wskbd.c wskbdutil.c wsksymvar.h Log message: Prevent a double free by assigning the new keymap and corresponding size after the allocation and initialization is done. Otherwise, a race is possible if malloc ends up sleeping. ok sashan@ Reported-by: syzbot+7f8224e9f1a3487ca...@syzkaller.appspotmail.com