1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-01-03 10:17:11 +00:00

general: suppress clang-tidy-21/22 warnings;

some code fiddling on affected files
manual: use new lua filter "lua-crossrefs.lua" hacked from
  https://github.com/rnwst/pandoc-lua-crossrefs as replacement for
  tablenos which broke with pandoc 2.8.2 (get nicer output anyway);
  fix "excode39.svg" data $ -> # to avoid shell processing;
  document `ZBarcode_HaveGS1SyntaxEngine()`
This commit is contained in:
gitlost
2025-10-08 12:21:29 +01:00
parent d413255c93
commit a3cca33f32
30 changed files with 1645 additions and 1080 deletions

View File

@@ -1829,6 +1829,8 @@ INTERNAL int zint_qrcode(struct zint_symbol *symbol, struct zint_seg segs[], con
size = qr_sizes[version - 1];
size_squared = size * size;
assert(size >= 21); /* Suppress clang-tidy-21 clang-analyzer-security.ArrayBound */
grid = (unsigned char *) z_alloca(size_squared);
memset(grid, 0, size_squared);
@@ -2736,6 +2738,8 @@ INTERNAL int zint_rmqr(struct zint_symbol *symbol, struct zint_seg segs[], const
h_size = rmqr_width[version];
v_size = rmqr_height[version];
assert(h_size >= 27 && v_size >= 7); /* Suppress clang-tidy-21 clang-analyzer-security.ArrayBound */
grid = (unsigned char *) z_alloca(h_size * v_size);
memset(grid, 0, h_size * v_size);