Cleanup some potential memory overruns
cmr=v1.7.5:reviewer=jsquyres This commit was SVN r30331.
Этот коммит содержится в:
родитель
9f6fd7b98d
Коммит
5ad9795bd8
@ -243,12 +243,12 @@ construct:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!endtagged) {
|
if (!endtagged && k < ORTE_IOF_BASE_TAGGED_OUT_MAX) {
|
||||||
/* need to add an endtag */
|
/* need to add an endtag */
|
||||||
for (j=0; j < endtaglen && k < ORTE_IOF_BASE_TAGGED_OUT_MAX-1; j++) {
|
for (j=0; j < endtaglen && k < ORTE_IOF_BASE_TAGGED_OUT_MAX-1; j++) {
|
||||||
output->data[k++] = endtag[j];
|
output->data[k++] = endtag[j];
|
||||||
}
|
}
|
||||||
output->data[k++] = '\n';
|
output->data[k] = '\n';
|
||||||
}
|
}
|
||||||
output->numbytes = k;
|
output->numbytes = k;
|
||||||
|
|
||||||
|
@ -522,6 +522,10 @@ static int regex_parse_node_range(char *base, char *range, int num_digits, char
|
|||||||
bool found;
|
bool found;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
if (NULL == base || NULL == range) {
|
||||||
|
return ORTE_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
len = strlen(range);
|
len = strlen(range);
|
||||||
base_len = strlen(base);
|
base_len = strlen(base);
|
||||||
/* Silence compiler warnings; start and end are always assigned
|
/* Silence compiler warnings; start and end are always assigned
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user