1
0
mirror of https://github.com/woo-j/zint.git synced 2024-12-24 17:34:05 +03:00
zint/backend
Schaich 609fbeb008 Pull addon_row_height out of the loop
The ```addon_row_height``` variable is conditionally initialized in some
branches, which also set ```addon_latch``` to one(true). Later in the loop's
body, ```addon_row_height``` is accessed if ```addon_latch``` is true.

Unlike ```addon_row_height```, ```addon_latch``` is defined outside of the
loop's body, and as it is never reset to zero, keeps it's value of one once
it has been assigned. Future iterations of the loop can therefore not branch
into the code that initializes ```addon_row_height``` and (re)assigns
```addon_latch```, and ```addon_latch``` will be true, which causes
```addon_row_height``` to be accessed without having been initialized.

On most platforms, the ```addon_row_height``` variable will always be
allocated on the same memory, while skipping the initialization causes
the value that was previously assigned to ```addon_row_height``` to
remain on that memory.

Pull the variable declaration out of the for loop's body to assure the
previous iteration's value remains there independend of compiler or
platform specific behaviour.
2021-11-23 20:04:56 +09:00
..
fonts raster: fix text not scaling for half_int_scaling; UPCEAN font 2020-09-13 13:37:15 +01:00
tests Add HEIGHTPERROW_MODE_input mode flag (#204) 2021-11-20 11:32:30 +00:00
tools Update gen_gs1_lint.php re new Digital Link dlpkey in gs1-format-spec.txt 2021-03-15 15:27:20 +00:00
2of5.c Performance improvements for linear encoding and raster output 2021-10-20 23:05:30 +01:00
auspost.c Performance improvements for linear encoding and raster output 2021-10-20 23:05:30 +01:00
aztec.c PDF417: fix cols/rows calculation to require multiple <= 928 codewords; 2021-10-30 22:00:31 +01:00
aztec.h testcommon: fix sizeof bug; AZTEC/QR: suppress cppcheck warnings (#233) 2021-07-06 12:13:34 +01:00
big5.h eci: Add support for all ECIs (Big5, Korean, UCS-2BE) 2021-01-11 18:11:41 +00:00
bmp.c CMakeLists.txt: cmake min required 3.13 -> 3.5 using CMAKE_REQUIRED_LIBRARIES; add ZINT_COVERAGE option 2021-07-26 15:29:05 +01:00
bmp.h raster.c: need ceilf(large_bar_height * si) to avoid zero height rows; 2021-09-26 23:55:16 +01:00
channel_precalcs.h Add Structured Append support for AZTEC, CODEONE, DATAMATRIX, DOTCODE, 2021-09-28 21:42:44 +01:00
CMakeLists.txt Add .rc file to Windows backend build. 2021-10-21 09:53:22 -05:00
codablock.c Performance improvements for linear encoding and raster output 2021-10-20 23:05:30 +01:00
code1.c PDF417: fix cols/rows calculation to require multiple <= 928 codewords; 2021-10-30 22:00:31 +01:00
code1.h Performance improvements for linear encoding and raster output 2021-10-20 23:05:30 +01:00
code16k.c Add HEIGHTPERROW_MODE_input mode flag (#204) 2021-11-20 11:32:30 +00:00
code49.c Add HEIGHTPERROW_MODE_input mode flag (#204) 2021-11-20 11:32:30 +00:00
code49.h Performance improvements for linear encoding and raster output 2021-10-20 23:05:30 +01:00
code128.c CODE128/EAN14: fix debug printf bar spaces (not NUL-terminated) 2021-11-21 15:49:32 +00:00
code128.h Performance improvements for linear encoding and raster output 2021-10-20 23:05:30 +01:00
code.c PDF417: fix cols/rows calculation to require multiple <= 928 codewords; 2021-10-30 22:00:31 +01:00
common.c Add HEIGHTPERROW_MODE_input mode flag (#204) 2021-11-20 11:32:30 +00:00
common.h Performance improvements for linear encoding and raster output 2021-10-20 23:05:30 +01:00
composite.c Add HEIGHTPERROW_MODE_input mode flag (#204) 2021-11-20 11:32:30 +00:00
composite.h PDF417/raster: performance large data; common.h inline, module_colour_is_set(); #209 2020-11-01 18:32:55 +00:00
DEVELOPER Update version to 2.6.1 2017-08-27 09:31:02 +01:00
dllversion.c Performance improvements for linear encoding and raster output 2021-10-20 23:05:30 +01:00
dmatrix.c DATAMATRIX: re [e9b8ee] add dm_text_sp_cnt() & dm_switch_mode() to get around 2021-11-16 18:37:51 +00:00
dmatrix.h DATAMATRIX: fix mis-encodation of X12 and EDIFACT non-encodables by 2021-11-08 13:05:37 +00:00
dotcode.c PDF417: fix cols/rows calculation to require multiple <= 928 codewords; 2021-10-30 22:00:31 +01:00
eci_sb.h eci: Add support for all ECIs (Big5, Korean, UCS-2BE) 2021-01-11 18:11:41 +00:00
eci.c get_best_eci: check UTF-8 before returning 26; move is_valid_utf8 to common 2021-03-21 17:35:52 +00:00
eci.h DATAMATRIX: make EOD encodation strictly ISO 16022 compliant 2021-02-23 00:01:15 +00:00
emf.c Performance improvements for linear encoding and raster output 2021-10-20 23:05:30 +01:00
emf.h Performance improvements for linear encoding and raster output 2021-10-20 23:05:30 +01:00
font.h Performance improvements for linear encoding and raster output 2021-10-20 23:05:30 +01:00
gb2312.c PDF417: fix cols/rows calculation to require multiple <= 928 codewords; 2021-10-30 22:00:31 +01:00
gb2312.h eci: Add support for all ECIs (Big5, Korean, UCS-2BE) 2021-01-11 18:11:41 +00:00
gb18030.c PDF417: fix cols/rows calculation to require multiple <= 928 codewords; 2021-10-30 22:00:31 +01:00
gb18030.h eci: Add support for all ECIs (Big5, Korean, UCS-2BE) 2021-01-11 18:11:41 +00:00
general_field.c Performance improvements for linear encoding and raster output 2021-10-20 23:05:30 +01:00
general_field.h #209 rss.c, composite.c; DBAR_EXP encodation methods; symbol NO_PNG out.gif 2020-12-21 19:30:07 +00:00
gif.c - raster.c: Need ceilf(symbol->height * si) to avoid heap-buffer-overflow; 2021-09-20 14:56:27 +01:00
gridmtx.c PDF417: fix cols/rows calculation to require multiple <= 928 codewords; 2021-10-30 22:00:31 +01:00
gridmtx.h Performance improvements for linear encoding and raster output 2021-10-20 23:05:30 +01:00
gs1_lint.h Update gs1_lint.h re initial index in gs1-format-spec.txt 2021-02-22 19:05:24 +00:00
gs1.c PDF417: fix cols/rows calculation to require multiple <= 928 codewords; 2021-10-30 22:00:31 +01:00
gs1.h C25/DBAR: use new func gs1_check_digit() for common GS1 check digit calc 2021-06-27 11:47:55 +01:00
hanxin.c PDF417: fix cols/rows calculation to require multiple <= 928 codewords; 2021-10-30 22:00:31 +01:00
hanxin.h Remove spaces before EOL 2017-10-25 17:23:57 +01:00
imail.c Performance improvements for linear encoding and raster output 2021-10-20 23:05:30 +01:00
iso3166.h gs1_verify: validate AIs from BWIPP gs1-format-spec.txt 2021-01-18 20:10:52 +00:00
iso4217.h gs1_verify: validate AIs from BWIPP gs1-format-spec.txt 2021-01-18 20:10:52 +00:00
ksx1001.h eci: Add support for all ECIs (Big5, Korean, UCS-2BE) 2021-01-11 18:11:41 +00:00
large.c Performance improvements for linear encoding and raster output 2021-10-20 23:05:30 +01:00
large.h #209 large.c fix oversized arrays by 0-filling; const args, casts 2021-02-11 13:51:07 +00:00
library.c raster.c: fix possible blank rows appearing in CODE16K, CODE49, PHARMA_TWO, 2021-11-07 00:21:02 +00:00
libzint.rc Fix version number format for STRINGFILEINFO resources. 2021-10-21 15:39:46 -05:00
LICENSE license changed with permission of original copyright holders (see mailing list for details) 2013-05-16 19:26:22 +02:00
mailmark.c Performance improvements for linear encoding and raster output 2021-10-20 23:05:30 +01:00
Makefile.mingw raster.c: need ceilf(large_bar_height * si) to avoid zero height rows; 2021-09-26 23:55:16 +01:00
maxicode.c PDF417: fix cols/rows calculation to require multiple <= 928 codewords; 2021-10-30 22:00:31 +01:00
maxicode.h Make data types for tables consistent across symbologies 2017-08-09 09:13:37 +01:00
medical.c Performance improvements for linear encoding and raster output 2021-10-20 23:05:30 +01:00
ms_stdint.h Remove spaces before EOL 2017-10-25 17:23:57 +01:00
output.c raster.c: fix possible blank rows appearing in CODE16K, CODE49, PHARMA_TWO, 2021-11-07 00:21:02 +00:00
output.h raster.c: fix possible blank rows appearing in CODE16K, CODE49, PHARMA_TWO, 2021-11-07 00:21:02 +00:00
pcx.c CMakeLists.txt: cmake min required 3.13 -> 3.5 using CMAKE_REQUIRED_LIBRARIES; add ZINT_COVERAGE option 2021-07-26 15:29:05 +01:00
pcx.h Remove spaces before EOL 2017-10-25 17:23:57 +01:00
pdf417_tabs.h PDF417: fix cols/rows calculation to require multiple <= 928 codewords; 2021-10-30 22:00:31 +01:00
pdf417.c PDF417: fix cols/rows calculation to require multiple <= 928 codewords; 2021-10-30 22:00:31 +01:00
pdf417.h PDF417: fix cols/rows calculation to require multiple <= 928 codewords; 2021-10-30 22:00:31 +01:00
plessey.c Performance improvements for linear encoding and raster output 2021-10-20 23:05:30 +01:00
png.c Performance improvements for linear encoding and raster output 2021-10-20 23:05:30 +01:00
postal.c Performance improvements for linear encoding and raster output 2021-10-20 23:05:30 +01:00
ps.c vector: Add width to struct zint_vector_circle & use for MaxiCode bullseye 2021-08-22 13:59:01 +01:00
qr.c PDF417: fix cols/rows calculation to require multiple <= 928 codewords; 2021-10-30 22:00:31 +01:00
qr.h CODABLOCKF: prevent cols > 62; fix pTestList buffer overflow 2021-08-10 12:04:25 +01:00
raster.c raster.c: fix possible blank rows appearing in CODE16K, CODE49, PHARMA_TWO, 2021-11-07 00:21:02 +00:00
reedsol_logs.h Add Structured Append support for AZTEC, CODEONE, DATAMATRIX, DOTCODE, 2021-09-28 21:42:44 +01:00
reedsol.c TELEPEN: fix stop length (14 -> 12) 2021-11-11 13:30:58 +00:00
reedsol.h TELEPEN: fix stop length (14 -> 12) 2021-11-11 13:30:58 +00:00
rss.c Add HEIGHTPERROW_MODE_input mode flag (#204) 2021-11-20 11:32:30 +00:00
rss.h rss.c: some fixes for separators, allow check digit, refactoring; bwipp_dump.ps 2020-07-10 19:39:32 +01:00
sjis.c PDF417: fix cols/rows calculation to require multiple <= 928 codewords; 2021-10-30 22:00:31 +01:00
sjis.h eci: Add support for all ECIs (Big5, Korean, UCS-2BE) 2021-01-11 18:11:41 +00:00
stdint_msvc.h Remove spaces before EOL 2017-10-25 17:23:57 +01:00
svg.c Performance improvements for linear encoding and raster output 2021-10-20 23:05:30 +01:00
telepen.c TELEPEN: fix stop length (14 -> 12) 2021-11-11 13:30:58 +00:00
tif_lzw.h raster.c: need ceilf(large_bar_height * si) to avoid zero height rows; 2021-09-26 23:55:16 +01:00
tif.c PDF417: fix cols/rows calculation to require multiple <= 928 codewords; 2021-10-30 22:00:31 +01:00
tif.h tif.c: Use palette/bilevel/LZW to reduce file size, alpha/CMYK support 2021-03-19 13:09:21 +00:00
ultra.c Performance improvements for linear encoding and raster output 2021-10-20 23:05:30 +01:00
upcean.c Performance improvements for linear encoding and raster output 2021-10-20 23:05:30 +01:00
vector.c Pull addon_row_height out of the loop 2021-11-23 20:04:56 +09:00
zfiletypes.h Add GS1PARENS_MODE (input_mode) to allow inputting GS1 AIs in parentheses 2021-05-15 12:23:46 +01:00
zint.h Add HEIGHTPERROW_MODE_input mode flag (#204) 2021-11-20 11:32:30 +00:00
zintconfig.h Bump version to 2.10.0.9 (dev) 2021-08-14 16:11:25 +01:00
zintconfig.h.in backend/CMakeLists.txt: output dir for zintconfig.h, props Andre Maute (#238); copyright/guard 2021-07-12 16:57:32 +01:00