winsane: Fixed bounds checks of tainted variables