View | Details | Raw Unified | Return to bug 212921
Collapse All | Expand All

(-)crypto/openssl/crypto/bn/bn_print.c (-3 / +2 lines)
Lines 141-154 char *BN_bn2dec(const BIGNUM *a) Link Here
141
        if (BN_is_negative(t))
141
        if (BN_is_negative(t))
142
            *p++ = '-';
142
            *p++ = '-';
143
143
144
        i = 0;
145
        while (!BN_is_zero(t)) {
144
        while (!BN_is_zero(t)) {
145
            if (lp - bn_data >= bn_data_num)
146
                goto err;
146
            *lp = BN_div_word(t, BN_DEC_CONV);
147
            *lp = BN_div_word(t, BN_DEC_CONV);
147
            if (*lp == (BN_ULONG)-1)
148
            if (*lp == (BN_ULONG)-1)
148
                goto err;
149
                goto err;
149
            lp++;
150
            lp++;
150
            if (lp - bn_data >= bn_data_num)
151
                goto err;
152
        }
151
        }
153
        lp--;
152
        lp--;
154
        /*
153
        /*

Return to bug 212921