mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-12 22:25:59 -04:00
Fix buffer over run, source is similar to local_source but smaller.
So it might be possible to find a plus character in random data behind source.
This commit is contained in:
parent
45633751ee
commit
81cadc3cf9
1 changed files with 1 additions and 1 deletions
|
@ -753,8 +753,8 @@ int eanx(struct zint_symbol *symbol, unsigned char source[], int src_len) {
|
|||
|
||||
ean_leading_zeroes(symbol, source, local_source);
|
||||
|
||||
if (source[reader] == '+') {
|
||||
for (reader = 0; reader < ustrlen(local_source); reader++) {
|
||||
if (local_source[reader] == '+') {
|
||||
with_addon = TRUE;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue