Commit graph

3765 commits

Author SHA1 Message Date
AlexGeller1 3909ebe294
Fix qr compaction (#1449)
* - Added missing error handling in case of a failing assert
- Fixed typo in the documentation

* Fixed bug that the minimal encoder would fail with an internal error if the string to encode contained only characters from ISO-8859-1 and on or more character that is not defined in any of the ISO-8859 characters sets.
2021-10-12 09:09:19 -05:00
Sean Owen f984496a10 Fix javadoc error 2021-10-11 11:44:10 -05:00
Choi Su Beom f4f3c2971d
fix(core): do not evaluate out of index as white on qrcode mask evaluation (#1446)
* fix(core): do not evaluate out of index as white on qrcode mask evaluation
2021-10-09 13:15:00 -05:00
AlexGeller1 7a760c6384
Added experimental version of QR-Code compaction (#1445)
* Added experimental version of QR-Code compaction which can be activated via EncodeHintType.QR_COMPACT
2021-10-09 10:50:46 -05:00
Sean Owen af7831b5c7 Optimization for https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=39707 2021-10-07 21:31:16 -05:00
Sean Owen b51346c072
Enforce line length and indent in checkstyle (#1448) 2021-10-05 15:49:47 -05:00
Anders Hammarquist fc50fca12f
Fix decoding of FNC1 in AztecCode. (#1441)
* Fix decoding of FNC1 in AztecCode. Flush buffer to make sure FNC1 is output in the correct
position in the stream.

* Simplify. Flush buffers outside switch, as it happens for all non-error cases anyway.
2021-09-28 15:28:07 -05:00
Anders Hammarquist 83650ce341
Add option to output raw bitstream from CommandLineRunner. (#1442)
* Add option to output raw bitstream from CommandLineRunner.
Useful for debugging barcodes. Same as the web decoder.

* Use StringBuilder. Fix indentation.
2021-09-28 15:27:49 -05:00
Sean Owen be2c5bdd88 Fix for https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=38913 2021-09-17 21:46:37 -05:00
Sean Owen c6a4e0fa97 Optimization for https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=38541 2021-09-11 18:03:19 -05:00
Sean Owen f5ef61ec13 Possible fix for https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=38486 2021-09-11 08:56:09 -05:00
Sean Owen 91a423b050 Possible fix for https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=38309 2021-09-09 12:04:56 -05:00
Sean Owen 0235f355ff Possible fix for https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=38197 ; refactor FieldParser data impl 2021-09-06 20:43:18 -05:00
Sean Owen 8761b26a50 Fix Clirr 2021-09-06 08:40:36 -05:00
Sean Owen 895775efa5 Possible fix for https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=38181 ; disallow encodings not supported by the JVM 2021-09-06 07:23:27 -05:00
MakKi (makki_d) f04ab98f97
fix valid y range (#1430) 2021-09-05 11:57:11 -05:00
Sean Owen aeeec7b07f Possible fix for https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=38086 2021-09-04 08:46:11 -05:00
Sean Owen 5b0036446e Fix for https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=38010 2021-09-02 09:27:41 -05:00
Sean Owen 6bcae2e5ea Minor hack to fix corner case from https://oss-fuzz.com/testcase-detail/5178194588729344 2021-09-01 22:13:16 -05:00
Sean Owen 50ead4f658 Another possible improvement against https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=37905&q=label%3AProj-zxing 2021-09-01 21:31:36 -05:00
Sean Owen 490769e75f Possible fix for https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=37905 2021-09-01 12:48:20 -05:00
Sean Owen f6087eea12 Another possible fix for https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=37858 2021-08-31 12:07:57 -05:00
Sean Owen 629ce38a5d Dependency, plugin updates 2021-08-30 20:08:56 -05:00
Sean Owen dc6c8ea422 Possible fix for https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=37868 2021-08-30 20:06:44 -05:00
Sean Owen 73a3c3a704 Possible fix for https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=37858 2021-08-30 13:35:02 -05:00
Sean Owen b3941e251b Possible fix for https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=37853 2021-08-30 13:24:58 -05:00
Sean Owen 2b48aec2c4 Possible fix for https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=37811 2021-08-30 10:01:28 -05:00
gschwaer d2027d0e0f
Introduce hint to force specific code set for Code-128 encoding (#1411)
* Introduce hint to force specific code set for Code-128 encoding

* Address review comments

* Make character check more readable; address review comments

* Address review comments

Co-authored-by: Gero Schwäricke <gero@schwaericke.email>
2021-07-29 15:28:21 -05:00
Sean Owen 0d08915628 Minor changes from code inspection 2021-07-27 09:20:28 -05:00
Ikko Ashimine 1499c92178
Fix typo in ResultMetadataType.java (#1410)
identifer -> identifier
2021-07-26 18:46:34 -05:00
Sean Owen 32331c0708 Fix possible AIOOBE from fuzz test 2021-07-16 11:47:49 -05:00
MakKi (makki_d) ad061f05e2
Fix symbology identifier tests (#1396)
* rename metadata test files

* implement symbology identifier on ITFReader

* add metadata test

* remove unused code
2021-06-07 07:11:10 -05:00
Sean Owen adbf17d7a7 Minor code and dep changes; return better HTTP status codes from web app 2021-05-23 09:16:45 -05:00
gitlost d4c3d73592
PDF417 Macro: fileId numeric decode; allow Macro only symbol (#1379)
* PDF417 Macro: fileId numeric decode; allow Macro only symbol

* PDF417 Macro: additional FormatException unit tests
2021-04-12 09:44:42 -05:00
dehnhard 99e9b34f5a
Update ResultMetadataType.java (#1376) 2021-04-06 10:19:57 -05:00
gitlost cad70351ef
MaxiCode decoding: add missing NS to Set C (#1375) 2021-04-03 19:40:11 -05:00
Sean Owen f05963d63d Update dependencies and add one new test 2021-04-02 11:59:49 -05:00
Sean Owen 547e58a286 Add support for guessing UTF-16 encoding based on BOM 2021-04-02 11:53:19 -05:00
dehnhard ef498941bf
Symbology Identifier support (#1372)
* decoder support for symbology identifier metadata

Co-authored-by: Daniel Dehnhard <daniel@dehnhard.it>
2021-04-02 07:21:33 -05:00
dehnhard 3bf945e4cf
inverted barcode support (#1371)
* also decodes inverted barcode on hint

Co-authored-by: Daniel Dehnhard <daniel@dehnhard.it>
2021-04-01 17:04:55 -05:00
gitlost 5fb2cf8e96
Aztec Detector::getDimension() fix for layers 27 (131x131) (#1370) 2021-03-17 19:25:26 -05:00
gitlost a7c3516826
Update DMRE versions to ISO/IEC 21471:2020 (#1369) 2021-03-17 18:12:40 -05:00
dehnhard 4426711598
Update dimension ratio change to new location (updates DMRE PR #323) (#1350)
* Update dimension ratio change to new location

* changing threshold to 6

as discussed in #1350
2021-01-19 13:40:59 -06:00
Sean Owen 395dc6b83f Initial support for DMRE 2021-01-15 17:14:02 -06:00
Sean Owen 3374aed3fd Tweak DoS limits and logging; update dependencies 2021-01-15 17:03:12 -06:00
Sean Owen 6dd0776b96 Prevent MaxiCode sampler from sampling off the edge of the image. 2020-12-30 15:44:03 -06:00
Sean Owen fd364d9338 Improve test coverage 2020-12-09 11:29:07 -06:00
Sean Owen e7ed6aee2f Misc dead code cleanup, plugin updates 2020-12-08 11:55:33 -06:00
Daniel Pfeffer 820d091073
Update strings.xml (#1336)
Better German
2020-11-19 06:48:45 -06:00
Sean Owen 5e689afc47
Create codeql-analysis.yml 2020-11-18 12:09:06 -06:00