protect against string overrun in eb