Koha-clms/t/db_dependent/Koha/SearchEngine
David Cook ee04bdf3d7
Bug 38913: (QA follow-up) test UTF-8 exceptions in large MARC records
MARC records with over 99999 bytes are invalid by spec, and when you use
UTF-8 encoded characters in your MARC records, there is the potential
to generate fatal errors in MARC::File::USMARC when it runs
"marc_to_utf8" from "MARC::File::Encode" during its "decode" operation.

That is, if you MARC::File::USMARC->encode a MARC record
with over 99999 bytes (including a number of UTF-8 bytes), there
is the potential when you run MARC::File:USMARC->decode on that same
data that you'll generate a fatal exception.

The main patch in bug 38913 wraps the function doing the decode,
so that a bad record doesn't crash processing.

Without the patch, this unit test will fail. With the patch, this
unit test will pass.

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 9d41abc1e7)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
2025-02-04 21:52:49 +01:00
..
Elasticsearch Bug 30745: (QA follow-up) tidy 2024-11-18 17:44:31 +01:00
Zebra Bug 37333: (follow-up) Update existing tests 2024-07-22 15:55:11 +01:00
Elasticsearch.t Bug 38913: (QA follow-up) test UTF-8 exceptions in large MARC records 2025-02-04 21:52:49 +01:00
Indexer.t Bug 33641: (Follow-up) Fix Indexer.t 2024-11-15 15:50:08 +01:00
Search.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00