mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 12:49:35 +08:00
Fix broken build for fuzzer
This partially reverts commit a792b67983
.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
fe25faae8b
commit
f2c6378b5a
@ -68,7 +68,7 @@ extern "C" int LLVMFuzzerInitialize(int * /*pArgc*/, char ***pArgv) {
|
||||
}
|
||||
|
||||
static PIX *createPix(BitReader &BR, const size_t width, const size_t height) {
|
||||
Image pix = pixCreate(width, height, 1);
|
||||
Pix *pix = pixCreate(width, height, 1);
|
||||
|
||||
if (pix == nullptr) {
|
||||
printf("pix creation failed\n");
|
||||
@ -93,7 +93,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||
|
||||
char *outText = api->GetUTF8Text();
|
||||
|
||||
pix.destroy();
|
||||
pixDestroy(&pix);
|
||||
delete[] outText;
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user