You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
422 B

/*
* Copyright 2021 Axel Waggershauser
*/
// SPDX-License-Identifier: Apache-2.0
#include <stdint.h>
#include <stddef.h>
#include "ByteArray.h"
#include "datamatrix/DMHighLevelEncoder.h"
using namespace ZXing;
using namespace ZXing::DataMatrix;
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
{
std::wstring txt(data, data + size);
try {
Encode(txt);
} catch (...) {
}
return 0;
}