3610026 Stop segfault when regexp overflows color limits.
Demand the error message indicating the purpose of the test.
3610026 Stop crash when the number of "colors" in a regular expression
overflows a short int.  Thanks to Heikki Linnakangas for the report and
the patch.