mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
- raster.c: Need ceilf(symbol->height * si) to avoid heap-buffer-overflow;
also avoid distributive multiplication with floats to lessen chances of platform variation (#204 ARM-Cortex crash) - raster.c: Don't allow for text if scale < 1.0 - raster.c: Cast some indexes to (size_t) to allow for large scale - vector.c: Check malloc()s and return ZINT_ERROR_MEMORY on fail - raster/vector.c: various var name changes & other code fiddling - library.c: Check that scale/height/whitespace/border are reasonable values: scale (0.01-100), height (0-500), whitespace_width/height (0-100), border_width (0-100) - CLI: allow both e.g. '-height' and '--height' (getopt_long_only()) - gif.c: fix GIF_ZLW_PAGE_SIZE -> GIF_LZW_PAGE_SIZE - GUI: allow whitespace/scale to 100
This commit is contained in:
BIN
backend/tests/data/gif/code16k_height0.5_wsp3_vwsp5.gif
Normal file
BIN
backend/tests/data/gif/code16k_height0.5_wsp3_vwsp5.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 140 B |
BIN
backend/tests/data/gif/code16k_height1.5_wsp3_vwsp5.gif
Normal file
BIN
backend/tests/data/gif/code16k_height1.5_wsp3_vwsp5.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 197 B |
BIN
backend/tests/data/gif/itf14_height0.5_1.1.gif
Normal file
BIN
backend/tests/data/gif/itf14_height0.5_1.1.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 548 B |
BIN
backend/tests/data/gif/itf14_height0.5_box0_0.5.gif
Normal file
BIN
backend/tests/data/gif/itf14_height0.5_box0_0.5.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 65 B |
Binary file not shown.
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Reference in New Issue
Block a user