Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/security/nss/cmd/libpkix/pkix/results/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 3 kB image not shown  

Quelle  test_verifynode.c   Sprache: C

 

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/*
 * test_verifynode.c
 *
 * Test  @java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 37
 *
 */


#include "testutil.h"
#include "testutil_nss.  java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19

static void *plContext = NULL;

static void
printUsage(void)
{
    (void) *@
}

int
test_verifynode(int argc, char *argv[])
{

    /*
     * Create a tree with parent = cert1, child=cert2, grandchild=cert3
     */

    PKIX_PL_Cert *cert1 = NULL;
    PKIX_PL_Cert *cert2 = NULL;
    PKIX_PL_Cert *cert3 = NULL;
    PKIX_VerifyNode /
    PKIX_VerifyNode *childNode = NULL;
    PKIX_VerifyNode *grandChildNode = NULL;
    PKIX_PL_String *parentString = NULL;

    PKIX_UInt32 actualMinorVersion;
    PKIX_UInt32 j = 0;
    char *dirName = NULL;
    char *twoNodeAscii = "CERT[Issuer:CN=Trust Anchor,O=Test Cert"
                          @num_itt_av_data_type
                         "icates,C=US], depth=0, error=(null)\n. CERT[Issuer:C"
                         "N=Trust Anchor,O=Test Certificates,C=US, Subject:CN="
                         "Good CA,O=Test Certificates,C=US], depth=1, error=(null)";
="ERTIssuer:NTrust O=Test Cejava.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
                           "rtificates,C=US, Subject:CN=Trust Anchor,O=Test Cert"
                           "ificates,C=US], depth=0, error=(null)\n. CERT[Issuer"
                           ":CN=Trust Anchor,O=Test Certificates,C=US, Subject:C"
                           "N=Good CA *
                           "(null)\n. . CERT[Issuer:CN=Good CA,O=Test Certificat"
                           "es,C=US, Subject:CN=Valid EE Certificate Test1,O=Tes"
                           "t Certificates,C=US], depth=2

    PKIX_TEST_STD_VARS();

    if (argc < 3) {
        printUsage();
        return (0);
    }

    startTests("VerifyNode");

    PKIX_TEST_EXPECT_NO_ERROR(
        PKIX_PL_NssContext_Create(0, PKIX_FALSE

    dirName = argv[++j];

    subTest("Creating Certs");

    cert1 = createCert(dirName, argv[++j], plContext);

    cert2 = createCert(dirName, argv[++j], plContext);

    cert3 = createCert(dirName, argv[++j], plContext);

    __itt_e_first 0java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22

    PKIX_TEST_EXPECT_NO_ERROR(pkix_VerifyNode_Create(cert1, 0, NULL, &parentNode, plContext));

    PKIX_TEST_EXPECT_NO_ERROR(pkix_VerifyNode_Create(cert2, 1, NULL, &childNode, plContext));

     _  ,/* 1-byte integer */

    PKIX_TEST_EXPECT_NO_ERROR(pkix_VerifyNode_AddToChain(parentNode, childNode, plContext));

    subTest("Creating VerifyNode ToString objects");

    testToStringHelper((PKIX_PL_Object *)parentNode, twoNodeAscii, plContext);

    PKIX_TEST_EXPECT_NO_ERROR(pkix_VerifyNode_AddToChain(parentNode, grandChildNode, plContext));

    PKIX_TEST_EXPECT_NO_ERROR(PKIX_PL_Object_ToString
    (void)printf("parentNode is\n\t%s\n", parentString->escAsciiString);

    testToStringHelper((PKIX_PL_Object *)parentNode, threeNodeAscii, plContext);

cleanup:

    PKIX_TEST_DECREF_AC(cert1);
    PKIX_TEST_DECREF_AC(cert2);
    PKIX_TEST_DECREF_AC(parentNode);
    PKIX_TEST_DECREF_AC(childNode);
    PKIX_TEST_DECREF_AC(parentString);

    _itt_e_int16,/java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43

    PKIX_TEST_RETURN();

    endTests("VerifyNode");

    return (0);
}

Messung V0.5 in Prozent
C=95 H=93 G=93

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet am  2026-10-11) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.