mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Allow PDF417 wider than 22 columns
Stack smashing bug, not enough memory for PDF417 symbols wider than ~22 columns. Increased memory allocation now allows up to maximum of 30 columns. Thanks to Monica Swanson.
This commit is contained in:
parent
a760d0dc26
commit
b36542b8f8
@ -437,7 +437,7 @@ int pdf417(struct zint_symbol *symbol, unsigned char chaine[], int length)
|
|||||||
{
|
{
|
||||||
int i, k, j, indexchaine, indexliste, mode, longueur, loop, mccorrection[520], offset;
|
int i, k, j, indexchaine, indexliste, mode, longueur, loop, mccorrection[520], offset;
|
||||||
int total, chainemc[2700], mclength, c1, c2, c3, dummy[35], codeerr;
|
int total, chainemc[2700], mclength, c1, c2, c3, dummy[35], codeerr;
|
||||||
char codebarre[100], pattern[580];
|
char codebarre[140], pattern[580];
|
||||||
int debug = 0;
|
int debug = 0;
|
||||||
|
|
||||||
codeerr = 0;
|
codeerr = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user