| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
#include <aws/auth/private/aws_profile.h> |
| 7 |
|
| 8 |
#include <aws/common/byte_buf.h> |
| 9 |
|
| 10 |
#include <assert.h> |
| 11 |
|
| 12 |
|
| 13 |
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { |
| 14 |
|
| 15 |
struct aws_allocator *allocator = aws_default_allocator(); |
| 16 |
|
| 17 |
struct aws_byte_buf buffer; |
| 18 |
buffer.allocator = NULL; |
| 19 |
buffer.buffer = (uint8_t *)data; |
| 20 |
buffer.capacity = size; |
| 21 |
buffer.len = size; |
| 22 |
|
| 23 |
struct aws_profile_collection *profile_set = |
| 24 |
aws_profile_collection_new_from_buffer(allocator, &buffer, AWS_PST_CREDENTIALS); |
| 25 |
aws_profile_collection_destroy(profile_set); |
| 26 |
|
| 27 |
return 0; |
| 28 |
} |