Check for properly formatted magic messages.

Check for a proper sized buffer.