diff -Nru jasper-4.2.1/CMakeLists.txt jasper-4.2.3/CMakeLists.txt --- jasper-4.2.1/CMakeLists.txt 2024-02-18 09:37:59.000000000 +0000 +++ jasper-4.2.3/CMakeLists.txt 2024-03-30 16:57:05.000000000 +0000 @@ -12,7 +12,7 @@ # The major, minor, and micro version numbers of the project. set(JAS_VERSION_MAJOR 4) set(JAS_VERSION_MINOR 2) -set(JAS_VERSION_PATCH 1) +set(JAS_VERSION_PATCH 3) # The shared library versioning information. # Guidelines on how to change this information can be found below. @@ -822,10 +822,10 @@ # We only want to include directories in the installed rpath if they # will not be considered implicitly. list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES - "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}" jas_is_system_dir) + "${CMAKE_INSTALL_FULL_LIBDIR}" jas_is_system_dir) if(jas_is_system_dir EQUAL -1) set(CMAKE_INSTALL_RPATH - "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}") + "${CMAKE_INSTALL_FULL_LIBDIR}") endif() endif() diff -Nru jasper-4.2.1/NEWS.txt jasper-4.2.3/NEWS.txt --- jasper-4.2.1/NEWS.txt 2024-02-18 09:37:59.000000000 +0000 +++ jasper-4.2.3/NEWS.txt 2024-03-30 16:57:05.000000000 +0000 @@ -1,3 +1,13 @@ +4.2.3 (2024-03-30) +================== + +* Added a missing check in the JPC codec (#381). + +4.2.2 (2024-03-11) +================== + +* Fix minor build issue (#374). + 4.2.1 (2024-02-18) ================== Binary files /tmp/tmpap9tgcib/OqfzLyVjup/jasper-4.2.1/data/test/bad/318.jpc and /tmp/tmpap9tgcib/neTvrJLwER/jasper-4.2.3/data/test/bad/318.jpc differ diff -Nru jasper-4.2.1/debian/changelog jasper-4.2.3/debian/changelog --- jasper-4.2.1/debian/changelog 2024-03-04 20:30:28.000000000 +0000 +++ jasper-4.2.3/debian/changelog 2024-04-20 18:57:06.000000000 +0000 @@ -1,3 +1,9 @@ +jasper (4.2.3-0ubuntu1~20.04.sav0) focal; urgency=medium + + * New upstream release + + -- Rob Savoury Sat, 20 Apr 2024 11:57:06 -0700 + jasper (4.2.1-0ubuntu1~20.04.sav0) focal; urgency=medium * New upstream release diff -Nru jasper-4.2.1/src/libjasper/jpc/jpc_dec.c jasper-4.2.3/src/libjasper/jpc/jpc_dec.c --- jasper-4.2.1/src/libjasper/jpc/jpc_dec.c 2024-02-18 09:37:59.000000000 +0000 +++ jasper-4.2.3/src/libjasper/jpc/jpc_dec.c 2024-03-30 16:57:05.000000000 +0000 @@ -611,7 +611,9 @@ if (dec->pkthdrstreams) { /* Get the stream containing the packet header data for this tile-part. */ - if (!(tile->pkthdrstream = jpc_streamlist_remove(dec->pkthdrstreams, 0))) { + if (jpc_streamlist_numstreams(dec->pkthdrstreams) != 0 && + !(tile->pkthdrstream = jpc_streamlist_remove(dec->pkthdrstreams, + 0))) { return -1; } }