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:
Robin Stuart 2011-01-20 08:27:18 +00:00
parent a760d0dc26
commit b36542b8f8

View File

@ -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 total, chainemc[2700], mclength, c1, c2, c3, dummy[35], codeerr;
char codebarre[100], pattern[580];
char codebarre[140], pattern[580];
int debug = 0;
codeerr = 0;