mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-09 13:41:59 -04:00
#181 OSS-Fuzz CODEONE fix, double indexing typo
This commit is contained in:
parent
7dfea38d85
commit
0c00ece9f5
4 changed files with 82 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
/*
|
||||
libzint - the open source barcode library
|
||||
Copyright (C) 2009-2017 Robin Stuart <rstuart114@gmail.com>
|
||||
Copyright (C) 2009-2020 Robin Stuart <rstuart114@gmail.com>
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
|
@ -442,7 +442,7 @@ static int c1_encode(struct zint_symbol *symbol, unsigned char source[], unsigne
|
|||
if (j == 13) {
|
||||
latch = 0;
|
||||
for (i = sp + 13; i < length; i++) {
|
||||
if (!((source[sp + i] >= '0') && (source[sp + i] <= '9'))) {
|
||||
if (!((source[i] >= '0') && (source[i] <= '9'))) {
|
||||
latch = 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue