[PATCH 1/2] Input; Sanitize event code before modifying bitmaps