That is fine and all but the fact that it can crash the client implies that it is unintended behavior, therefore it is a bug. It should produce an error about the syntax being incorrect or something other than crashing the client.