mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-14 15:14:49 -04:00
Expand symbol memory to allow biggest Han Xin without crashing
This commit is contained in:
parent
fd368ba8bf
commit
eedb4c638a
2 changed files with 3 additions and 3 deletions
|
@ -1083,7 +1083,7 @@ int dotcode(struct zint_symbol *symbol, unsigned char source[], int length) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((height > 177) || (width > 177)) {
|
if ((height > 200) || (width > 200)) {
|
||||||
strcpy(symbol->errtxt, "Specified symbol size is too large");
|
strcpy(symbol->errtxt, "Specified symbol size is too large");
|
||||||
return ZINT_ERROR_INVALID_OPTION;
|
return ZINT_ERROR_INVALID_OPTION;
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,8 +87,8 @@ extern "C" {
|
||||||
int rows;
|
int rows;
|
||||||
int width;
|
int width;
|
||||||
char primary[128];
|
char primary[128];
|
||||||
unsigned char encoded_data[178][143];
|
unsigned char encoded_data[200][143];
|
||||||
int row_height[178]; /* Largest symbol is 177x177 QR Code */
|
int row_height[200]; /* Largest symbol is 189 x 189 Han Xin */
|
||||||
char errtxt[100];
|
char errtxt[100];
|
||||||
char *bitmap;
|
char *bitmap;
|
||||||
int bitmap_width;
|
int bitmap_width;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue