Commit graph

1594 commits

Author SHA1 Message Date
Robin Stuart
b4182cbc19 Remove unneccessary length checks in Code1
Revokes commit #024490 and re-establishes commit #0c00ec
Relating to #184 thanks to Milton Neal and Git Lost
2020-04-01 19:27:49 +01:00
Harald Oehlmann
f02851b3c1 Document changes:
Bugs:
- Ticket 181 penetration test found many bugs:
  - Dotcode: Correct encoding of HT/FS/GS/RS when shifting to code set B
  - Maxicode: index overrun on numeric compaction
  - CodeOne: Simple i indexing not sp + i in C1_ASCII numeric latch loop.
  - Aztec: free memory,
- Ticket 183: Databar stacked separator correction
- Ticket 182: Output bitmap type was char, where some targets assigned 0
  if pixel colour >127 (e.g. negative). API change to use unsigned char.
- HanXin: wrong codepage, gb2312 instead gb18030.
- PDF417: corrected alloced sizes to max characters
2020-03-31 22:35:01 +02:00
gitlost
f5149990eb #181 OSS-Fuzz DOTCODE codeword_array buffer overrun fix 2020-03-31 13:02:53 +01:00
gitlost
22354a81f1 HANXIN fix wrong func call gb2312_utf8tosb() -> gb18030_utf8tosb() 2020-03-30 11:59:16 +01:00
gitlost
9b771dba3a Make zint-static build optional 2020-03-30 10:54:21 +01:00
Robin Stuart
c23b4b9ef1 Ultra: typos-- 2020-03-29 22:35:25 +01:00
Robin Stuart
b572bb513d Ultra: Disable code compression by default
Ensures symbols are valid until better version of specification is available
2020-03-29 22:23:07 +01:00
gitlost
e2cd96924d Test for #183 Databar Stacked separator 2020-03-29 20:04:47 +01:00
gitlost
afe0c96476 OSS-Fuzz add zint-static rule to backend/CMakeLists.txt 2020-03-29 15:51:56 +01:00
Robin Stuart
0244904c1f Prevent buffer overrun in Code One
Fixes #184 reported by Milton Neal
2020-03-29 14:23:31 +01:00
Robin Stuart
52214c5a1c Change bitmap signedness to allow conversion to other data types
Buffered bitmap array should have been type unsigned char not type char
Includes change to manual
In response to (and hopefully fixing) #182 reported by Marcelo Antunes
2020-03-29 13:42:33 +01:00
gitlost
e8b56faa11 #181 OSS-Fuzz DOTCODE test for correct encoding of HT/FS/GS/RS 2020-03-29 12:34:56 +01:00
gitlost
56f0616747 #181 OSS-Fuzz AZTEC fix, check binary_string buffer not full using az_binary_append() func 2020-03-28 22:50:55 +00:00
Robin Stuart
20d5dcc50f Update GS-1 DataBar Stacked seperator
Expected behaviour found to slightly differ from what was implemented
Discovered and documented by Daniel Gredler. Fixes #183
2020-03-28 16:09:24 +00:00
Robin Stuart
53d5187853 Dotcode: correct encoding of HT/FS/GS/RS when shifting to code set B
Also updated references to specification annex to match latest version
Bug reported by Nico Gunkel as part of #181
2020-03-28 15:28:11 +00:00
Git Lost
8565c14437 Merge /u/gitlost/zint/ branch oss_fuzz_pdf417 into master
https://sourceforge.net/p/zint/code/merge-requests/39/
2020-03-28 15:19:13 +00:00
gitlost
7f8e3c4ea1 #181 OSS-Fuzz PDF417 fix, increase buffers to 2710 (max possible input length) 2020-03-28 15:10:53 +00:00
Robin Stuart
f82dd73dd7 Free memory when quitting Aztec (#181)
Malloc'd memory should be freed as identified by Nico Gunkel in #181
2020-03-28 12:12:46 +00:00
gitlost
0c00ece9f5 #181 OSS-Fuzz CODEONE fix, double indexing typo 2020-03-28 10:13:06 +00:00
Git Lost
7dfea38d85 Merge /u/gitlost/zint/ branch oss_fuzz_maxicode into master
https://sourceforge.net/p/zint/code/merge-requests/37/
2020-03-28 02:59:54 +00:00
gitlost
d56c7915b7 #181 OSS-Fuzz MAXICODE fix, prevent index overrun on numeric compaction 2020-03-28 02:50:15 +00:00
Harald Oehlmann
0debfff5c8 Added list of recent bugfixes by git lost 2020-03-27 09:13:47 +01:00
gitlost
0f5deccfb6 #181 OSS-Fuzz ZBarcode_Encode_File fix, allow for zero-length file, free buffer on error 2020-03-26 22:17:37 +00:00
gitlost
027e8a775d #181 OSS-Fuzz TELEPEN fix, allow for 16 char nul encodings in buffer 2020-03-26 14:22:27 +00:00
gitlost
62995f18d2 #181 OSS-Fuzz UPC/EAN fix, allow max 6 chars add-on in ean_leading_zeroes() 2020-03-26 09:35:04 +00:00
gitlost
bee8794cda #181 OSS-Fuzz DOTCODE fix, check length before accessing in binary() 2020-03-25 22:31:59 +00:00
gitlost
54bd024266 Add missing test file 2020-03-25 19:33:20 +00:00
gitlost
556dea1f88 #181 OSS-Fuzz CODABLOCKF fix, allow for full control chars range in GetPossibleCharacterSet 2020-03-25 19:27:34 +00:00
gitlost
c245a11da2 #181 auspost fix, check input immediately; test for EANX double + fix 2020-03-25 15:40:13 +00:00
Robin Stuart
ee291e45d6 UPCEAN: Check for multiple + characters in input
Fixes #181 reported by Christian Hartlage
2020-02-15 21:28:40 +00:00
Harald Oehlmann
0c5dc4d030 Set version to 2.7.1 2020-02-01 19:36:50 +01:00
Harald Oehlmann
dd6de21008 Add changes since 2.7.0. Update InnoSetup file. 2020-01-27 08:51:53 +01:00
Harald Oehlmann
3ef7324311 Added required resource include file for zint cmd on win vc6 2020-01-23 22:16:44 +01:00
Robin Stuart
e02b739e67 Adjust license to correct wording
As suggested by onlyjob in ticket #179
2020-01-17 19:51:29 +00:00
Robin Stuart
c57b74a7e6 Ultra: add colour output to EMF 2020-01-13 19:24:01 +00:00
Robin Stuart
f15b7f9a75 Correct cmake file to match BSD 3-clause license 2020-01-13 15:06:46 +00:00
Robin Stuart
6d945ca2a1 Remove obsolete function declaration
Fixes #178 reported by Christian Wolf
2020-01-13 14:47:55 +00:00
gitlost
d513a68222 #147 Datamatrix buffer test from Opaki; encode examples from ISO 16022 2020-01-07 18:23:26 +00:00
Robin Stuart
5861ad3c3b Ultra: Extend colour support to PNG PCX BMP and TIF
Implementation needs improvement, but colour output is now achieved in most formats
2020-01-06 20:01:48 +00:00
Robin Stuart
6181885e2e Ultra: Add colour rectangle output to EPS 2020-01-06 18:00:43 +00:00
Robin Stuart
257da3fff5 Prevent Data Matrix buffer overflow bug
Fixes #176 reported by Daniel Gredler at OkapiBarcode
2020-01-05 12:35:16 +00:00
Robin Stuart
6954497fc1 Correct postscript plotting error
Report and fix by Matthieu LARIGALDIE
2020-01-05 11:27:24 +00:00
Robin Stuart
2faff4e76f Correct ECI but in DotCode
Avoid creating codewords > 112
Fixes #174 reported by Milton Neal
2019-12-26 17:57:29 +00:00
g3rrk
af50515a49 Manual: Add Apple macOS specific information 2019-12-21 01:04:42 +00:00
g3rrk
f23af1b55a Crop Appendix B and C from manual and other corrections
Appendix B and C are both out of date, and information is available elsewhere online, so no longer needed. Also change name of Data Matrix ECC200 to simply Data Matrix and correct some spelling errors.
2019-12-21 00:51:38 +00:00
gitlost
b00b227b4f PDF417 no longer uses option_3 for no. codewords so set default 0 & remove from Studio 2019-12-19 20:29:11 +00:00
gitlost
fa9af12fc6 raster.c: check bounds on calculating block width for UPCA 2019-12-19 00:59:51 +00:00
gitlost
bca82ecc0d libzint.so: suppress exporting INTERNAL functions to the shared library; ZINT_TEST 2019-12-19 00:37:55 +00:00
gitlost
c524d32227 GRIDMATRIX: suppress maybe-uninitialized warning by initializing nondigit_posn 2019-12-18 20:04:05 +00:00
Robin Stuart
d370f3c0c7 Ultra: Correct clock pattern generation, add work around to avoid negative UCC and output to colour SVG 2019-12-18 18:33:18 +00:00