if (extStr->nextUpdatedData > MAX_EXT_DATA_LENGTH) {
if (extStr->nextUpdatedData >= MAX_EXT_DATA_LENGTH) {
crlgen_setNextDataFn_extension(CRLGENGeneratorData *crlGenData, void *str,                        void *data, unsigned short dtype){    CRLGENExtensionEntry *extStr = (CRLGENExtensionEntry*)str;    PORT_Assert(crlGenData);    if (!crlGenData) {        PORT_SetError(SEC_ERROR_INVALID_ARGS);        return SECFailure;    }    if (extStr->extData == NULL) {        extStr->extData = PORT_ZNewArray(char *, MAX_EXT_DATA_LENGTH);        if (!extStr->extData) {            return SECFailure;        }    }    if (extStr->nextUpdatedData > MAX_EXT_DATA_LENGTH) {        PORT_SetError(SEC_ERROR_INVALID_ARGS);        crlgen_PrintError(crlGenData->parsedLineNum,                           "number of fields in extension "                          "exceeded maximum allowed data length: %d.\n",                          MAX_EXT_DATA_LENGTH);        return SECFailure;    }    extStr->extData[extStr->nextUpdatedData] = PORT_Strdup(data);    if (!extStr->extData[extStr->nextUpdatedData]) {        return SECFailure;    }    extStr->nextUpdatedData += 1;    return SECSuccess;}