mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
Refs: https://github.com/google/oss-fuzz/pull/3860 Fixes: https://github.com/nodejs/node/issues/33724 PR-URL: https://github.com/nodejs/node/pull/34761 Fixes: https://github.com/nodejs/node/issues/33724 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Rich Trott <rtrott@gmail.com>
12 lines
249 B
C++
12 lines
249 B
C++
#include <stdlib.h>
|
|
|
|
#include "node.h"
|
|
#include "node_internals.h"
|
|
#include "node_url.h"
|
|
|
|
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
|
node::url::URL url2(reinterpret_cast<const char*>(data), size);
|
|
|
|
return 0;
|
|
}
|