Sha256: c5bb442f090d7bb24c8f6eed458ef672923ed756ec9ddb380365e89a9407702e

Contents?: true

Size: 751 Bytes

Versions: 13

Compression:

Stored size: 751 Bytes

Contents

/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

#include <aws/auth/private/aws_profile.h>

#include <aws/common/byte_buf.h>

#include <assert.h>

/* NOLINTNEXTLINE(readability-identifier-naming) */
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {

    struct aws_allocator *allocator = aws_default_allocator();

    struct aws_byte_buf buffer;
    buffer.allocator = NULL;
    buffer.buffer = (uint8_t *)data;
    buffer.capacity = size;
    buffer.len = size;

    struct aws_profile_collection *profile_set =
        aws_profile_collection_new_from_buffer(allocator, &buffer, AWS_PST_CREDENTIALS);
    aws_profile_collection_destroy(profile_set);

    return 0;
}

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
aws-crt-0.4.0 aws-crt-ffi/crt/aws-c-auth/tests/fuzz/parse_credentials_profile.c
aws-crt-0.3.0 aws-crt-ffi/crt/aws-c-auth/tests/fuzz/parse_credentials_profile.c
aws-crt-0.2.1 aws-crt-ffi/crt/aws-c-auth/tests/fuzz/parse_credentials_profile.c
aws-crt-0.2.0 aws-crt-ffi/crt/aws-c-auth/tests/fuzz/parse_credentials_profile.c
aws-crt-0.1.9 aws-crt-ffi/crt/aws-c-auth/tests/fuzz/parse_credentials_profile.c
aws-crt-0.1.8 aws-crt-ffi/crt/aws-c-auth/tests/fuzz/parse_credentials_profile.c
aws-crt-0.1.7 aws-crt-ffi/crt/aws-c-auth/tests/fuzz/parse_credentials_profile.c
aws-crt-0.1.6 aws-crt-ffi/crt/aws-c-auth/tests/fuzz/parse_credentials_profile.c
aws-crt-0.1.5 aws-crt-ffi/crt/aws-c-auth/tests/fuzz/parse_credentials_profile.c
aws-crt-0.1.4 aws-crt-ffi/crt/aws-c-auth/tests/fuzz/parse_credentials_profile.c
aws-crt-0.1.2 aws-crt-ffi/crt/aws-c-auth/tests/fuzz/parse_credentials_profile.c
aws-crt-0.1.1.pre native/crt/aws-c-auth/tests/fuzz/parse_credentials_profile.c
aws-crt-0.1.0.pre native/crt/aws-c-auth/tests/fuzz/parse_credentials_profile.c