2 * Copyright 2022 The OpenSSL Project Authors. All Rights Reserved.
4 * Licensed under the Apache License 2.0 (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
10 #include "crypto/punycode.h"
11 #include "internal/nelem.h"
12 #include <openssl/crypto.h>
18 int FuzzerInitialize(int *argc, char ***argv)
23 int FuzzerTestOneInput(const uint8_t *buf, size_t len)
26 unsigned int out[16], outlen = OSSL_NELEM(out);
29 b = OPENSSL_malloc(len + 1);
31 ossl_punycode_decode((const char *)buf, len, out, &outlen);
34 ossl_a2ulabel(b, outc, sizeof(outc));
40 void FuzzerCleanup(void)