patch 8.2.3589: failure when "term_rows" of term_start() is an unusual value

Problem:    Failure when the "term_rows" argument of term_start() is an
            unusual value.
Solution:   Limit to range of zero to 1000. (closes #9116)
diff --git a/src/job.c b/src/job.c
index 80cb47e..a2e184b 100644
--- a/src/job.c
+++ b/src/job.c
@@ -432,6 +432,11 @@
 		opt->jo_term_rows = tv_get_number_chk(item, &error);
 		if (error)
 		    return FAIL;
+		if (opt->jo_term_rows < 0 || opt->jo_term_rows > 1000)
+		{
+		    semsg(_(e_invargval), "term_rows");
+		    return FAIL;
+		}
 	    }
 	    else if (STRCMP(hi->hi_key, "term_cols") == 0)
 	    {