Bugzilla – Bug 151489
minicom-2.1-149: 2 * subscript out of range
Last modified: 2006-02-27 16:58:07 UTC
I just tried to compile package minicom-2.1-149 with the Intel C compiler. It said 1. util.c(298): warning #175: subscript out of range The source code is static char loc_port_list[PARS_VAL_LEN]; static char *sp = NULL; static char *ep; /* first pass? */ if(sp == NULL) { strncpy(loc_port_list, port_list, PARS_VAL_LEN); loc_port_list[PARS_VAL_LEN] = (char) 0; Clearly broken code. Suggest make array one bigger. 2. util.c(310): warning #175: subscript out of range The source code is next_port[PARS_VAL_LEN] = (char) 0; Clearly broken code. Suggest make array one bigger.
fixed