mirror of
https://git.code.sf.net/p/zint/code
synced 2026-01-10 21:45:58 +00: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. (cherry-picking from commit b36542b8f8)
This commit is contained in:
@@ -441,7 +441,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;
|
||||
|
||||
Reference in New Issue
Block a user