Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package openjph for openSUSE:Factory checked in at 2026-06-02 16:00:56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/openjph (Old) and /work/SRC/openSUSE:Factory/.openjph.new.1937 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "openjph" Tue Jun 2 16:00:56 2026 rev:21 rq:1356309 version:0.27.3 Changes: -------- --- /work/SRC/openSUSE:Factory/openjph/openjph.changes 2026-05-11 16:48:40.899353545 +0200 +++ /work/SRC/openSUSE:Factory/.openjph.new.1937/openjph.changes 2026-06-02 16:01:20.055501939 +0200 @@ -1,0 +2,7 @@ +Mon Jun 1 08:13:30 UTC 2026 - Michael Vetter <[email protected]> + +- Update to 0.27.3: + * Changed how the QCC marker is created. + * Add OSS fuzz corpus for ojph_compress_fuzz_target #271 + +------------------------------------------------------------------- Old: ---- 0.27.2.tar.gz New: ---- 0.27.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ openjph.spec ++++++ --- /var/tmp/diff_new_pack.5ugFex/_old 2026-06-02 16:01:20.955539272 +0200 +++ /var/tmp/diff_new_pack.5ugFex/_new 2026-06-02 16:01:20.959539438 +0200 @@ -17,7 +17,7 @@ Name: openjph -Version: 0.27.2 +Version: 0.27.3 Release: 0 Summary: An implementation of JPEG2000 Part-15 License: BSD-2-Clause ++++++ 0.27.2.tar.gz -> 0.27.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/OpenJPH-0.27.2/fuzzing/fuzz_targets/ojph_compress_fuzz_target.cpp new/OpenJPH-0.27.3/fuzzing/fuzz_targets/ojph_compress_fuzz_target.cpp --- old/OpenJPH-0.27.2/fuzzing/fuzz_targets/ojph_compress_fuzz_target.cpp 2026-05-10 02:28:07.000000000 +0200 +++ new/OpenJPH-0.27.3/fuzzing/fuzz_targets/ojph_compress_fuzz_target.cpp 2026-05-14 05:25:23.000000000 +0200 @@ -35,6 +35,7 @@ //***************************************************************************/ #include <cstdint> +#include <vector> #include <cstdlib> #include <iostream> @@ -57,8 +58,9 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { - if (Size < 5) + if (Size < 5) { return 0; + } ojph::ui32 width = (Data[0] & 0x7F) + 1; ojph::ui32 height = (Data[1] & 0x7F) + 1; @@ -129,3 +131,27 @@ } return 0; } + +#ifdef OJPH_FUZZ_TARGET_MAIN +int main(int argc, char **argv) { + if (argc != 2) { + return -1; + } + FILE *f = fopen(argv[1], "rb"); + if (!f) { return -1; } + fseek(f, 0, SEEK_END); + long len = ftell(f); + if (len < 0) { + return -1; + } + rewind(f); + std::vector<uint8_t> buf(len); + size_t n = fread(buf.data(), 1, len, f); + if(n != static_cast<size_t>(len)) { + return -1; + } + fclose(f); + LLVMFuzzerTestOneInput(buf.data(), buf.size()); + return 0; +} +#endif \ No newline at end of file Binary files old/OpenJPH-0.27.2/fuzzing/seed_corpus/ojph_compress_fuzz_target/w128_h128_b2_79_b3_09.bin and new/OpenJPH-0.27.3/fuzzing/seed_corpus/ojph_compress_fuzz_target/w128_h128_b2_79_b3_09.bin differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/OpenJPH-0.27.2/src/core/codestream/ojph_params.cpp new/OpenJPH-0.27.3/src/core/codestream/ojph_params.cpp --- old/OpenJPH-0.27.2/src/core/codestream/ojph_params.cpp 2026-05-10 02:28:07.000000000 +0200 +++ new/OpenJPH-0.27.3/src/core/codestream/ojph_params.cpp 2026-05-14 05:25:23.000000000 +0200 @@ -1216,8 +1216,10 @@ qcd_component < 3 ? employing_color_transform : false); else if (qcd_wavelet_kern == param_cod::DWT_IRV97) { - if (this->base_delta == -1.0f) - this->base_delta = 1.0f / (float)(1 << qcd_bit_depth); + if (this->base_delta == -1.0f) { + ui32 t = ojph_min(16, qcd_bit_depth); + this->base_delta = 1.0f / (float)(1 << t); + } set_irrev_quant(qcd_num_decompositions); } else @@ -1250,8 +1252,16 @@ c < 3 ? employing_color_transform : false); else if (cp->get_wavelet_kern() == param_cod::DWT_IRV97) { - if (qp->base_delta == -1.0f) - qp->base_delta = 1.0f / (float)(1 << bit_depth); + if (qp->base_delta == -1.0f) { + if (qcd_wavelet_kern == param_cod::DWT_IRV97) { + assert(this->base_delta != -1.0f); + qp->base_delta = this->base_delta; + } + else { + ui32 t = ojph_min(16, qcd_bit_depth); + qp->base_delta = 1.0f / (float)(1 << t); + } + } qp->set_irrev_quant(num_decompositions); } else @@ -1275,8 +1285,16 @@ c < 3 ? employing_color_transform : false); else if (cp->get_wavelet_kern() == param_cod::DWT_IRV97) { - if (qp->base_delta == -1.0f) - qp->base_delta = 1.0f / (float)(1 << bit_depth); + if (qp->base_delta == -1.0f) { + if (qcd_wavelet_kern == param_cod::DWT_IRV97) { + assert(this->base_delta != -1.0f); + qp->base_delta = this->base_delta; + } + else { + ui32 t = ojph_min(16, qcd_bit_depth); + qp->base_delta = 1.0f / (float)(1 << t); + } + } qp->set_irrev_quant(num_decompositions); } else diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/OpenJPH-0.27.2/src/core/openjph/ojph_version.h new/OpenJPH-0.27.3/src/core/openjph/ojph_version.h --- old/OpenJPH-0.27.2/src/core/openjph/ojph_version.h 2026-05-10 02:28:07.000000000 +0200 +++ new/OpenJPH-0.27.3/src/core/openjph/ojph_version.h 2026-05-14 05:25:23.000000000 +0200 @@ -35,4 +35,4 @@ #define OPENJPH_VERSION_MAJOR 0 #define OPENJPH_VERSION_MINOR 27 -#define OPENJPH_VERSION_PATCH 2 +#define OPENJPH_VERSION_PATCH 3
