head 1.3; access; symbols pkgsrc-2026Q3:1.1.0.56 pkgsrc-2026Q3-base:1.1 pkgsrc-2026Q2:1.1.0.54 pkgsrc-2026Q2-base:1.1 pkgsrc-2026Q1:1.1.0.52 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.50 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.48 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.46 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.44 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.42 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.40 pkgsrc-2024Q3-base:1.1 pkgsrc-2024Q2:1.1.0.38 pkgsrc-2024Q2-base:1.1 pkgsrc-2024Q1:1.1.0.36 pkgsrc-2024Q1-base:1.1 pkgsrc-2023Q4:1.1.0.34 pkgsrc-2023Q4-base:1.1 pkgsrc-2023Q3:1.1.0.32 pkgsrc-2023Q3-base:1.1 pkgsrc-2023Q2:1.1.0.30 pkgsrc-2023Q2-base:1.1 pkgsrc-2023Q1:1.1.0.28 pkgsrc-2023Q1-base:1.1 pkgsrc-2022Q4:1.1.0.26 pkgsrc-2022Q4-base:1.1 pkgsrc-2022Q3:1.1.0.24 pkgsrc-2022Q3-base:1.1 pkgsrc-2022Q2:1.1.0.22 pkgsrc-2022Q2-base:1.1 pkgsrc-2022Q1:1.1.0.20 pkgsrc-2022Q1-base:1.1 pkgsrc-2021Q4:1.1.0.18 pkgsrc-2021Q4-base:1.1 pkgsrc-2021Q3:1.1.0.16 pkgsrc-2021Q3-base:1.1 pkgsrc-2021Q2:1.1.0.14 pkgsrc-2021Q2-base:1.1 pkgsrc-2021Q1:1.1.0.12 pkgsrc-2021Q1-base:1.1 pkgsrc-2020Q4:1.1.0.10 pkgsrc-2020Q4-base:1.1 pkgsrc-2020Q3:1.1.0.8 pkgsrc-2020Q3-base:1.1 pkgsrc-2020Q2:1.1.0.6 pkgsrc-2020Q2-base:1.1 pkgsrc-2020Q1:1.1.0.2 pkgsrc-2020Q1-base:1.1 pkgsrc-2019Q4:1.1.0.4 pkgsrc-2019Q4-base:1.1; locks; strict; comment @# @; 1.3 date 2026.11.21.17.08.10; author prlw1; state Exp; branches; next 1.2; commitid j3nVoMtQZp5YNl4H; 1.2 date 2026.10.30.10.32.52; author prlw1; state Exp; branches; next 1.1; commitid XOUl67eEB8KMju1H; 1.1 date 2019.11.25.21.07.19; author nros; state Exp; branches; next ; commitid 9QXqcjzLGpkachMB; desc @@ 1.3 log @jxrlib: RELRO fix Don't just pass the relro flags to the binaries. Also do same for the libraries. Spotted by wiz@@ @ text @$NetBSD$ - Avoid depending on python to create .pc file - pass in LDFLAGS for rpath and relro --- Makefile.orig 2026-11-21 13:28:24.860633344 +0000 +++ Makefile @@@@ -84,7 +84,7 @@@@ endif LIBRARIES=$(STATIC_LIBRARIES) endif -LIBS=-L$(DIR_BUILD) $(shell echo $(LIBRARIES) | sed -e 's%$(DIR_BUILD)/lib\([^ ]*\)\.\(a\|so\)%-l\1%g') -lm +LIBS=-L$(DIR_BUILD) $(LDFLAGS) $(shell echo $(LIBRARIES) | sed -e 's%$(DIR_BUILD)/lib\([^ ]*\)\.\(a\|so\)%-l\1%g') -lm ##-------------------------------- ## @@@@ -133,7 +133,7 @@@@ $(DIR_BUILD)/libjpegxr.so: $(OBJ_ENC) $(OBJ_DEC) $(OBJ $(DIR_BUILD)/libjpegxr.so: $(OBJ_ENC) $(OBJ_DEC) $(OBJ_SYS) $(MK_DIR) $(@@D) - $(CC) -shared $? -o $@@ + $(CC) -shared $? $(LDFLAGS) -o $@@ ##-------------------------------- ## @@@@ -171,7 +171,7 @@@@ $(DIR_BUILD)/libjxrglue.so: $(OBJ_GLUE) $(OBJ_TEST) $(DIR_BUILD)/libjxrglue.so: $(OBJ_GLUE) $(OBJ_TEST) $(MK_DIR) $(@@D) - $(CC) -shared $? -o $@@ + $(CC) -shared $? $(LDFLAGS) -o $@@ ##-------------------------------- ## @@@@ -206,10 +206,10 @@@@ $(DIR_BUILD)/libjxr.pc: $(DIR_SRC)/libjxr.pc.in $(DIR_BUILD)/libjxr.pc: $(DIR_SRC)/libjxr.pc.in @@python -c 'import os; d = { "DIR_INSTALL": "$(DIR_INSTALL)", "JXR_VERSION": "$(JXR_VERSION)", "JXR_ENDIAN": "$(ENDIANFLAG)" }; fin = open("$<", "r"); fout = open("$@@", "w+"); fout.writelines( [ l % d for l in fin.readlines()])' -install: all $(DIR_BUILD)/libjxr.pc +install: all install -d $(DIR_INSTALL)/lib/pkgconfig $(DIR_INSTALL)/bin $(DIR_INSTALL)/include/libjxr/common $(DIR_INSTALL)/include/libjxr/image/x86 $(DIR_INSTALL)/include/libjxr/glue $(DIR_INSTALL)/include/libjxr/test $(DIR_INSTALL)/share/doc/jxr-$(JXR_VERSION) install $(LIBRARIES) $(DIR_INSTALL)/lib - install -m 644 $(DIR_BUILD)/libjxr.pc $(DIR_INSTALL)/lib/pkgconfig + install -m 644 $(DIR_SRC)/libjxr.pc.in $(DIR_INSTALL)/lib/pkgconfig/libjxr.pc install $(DIR_BUILD)/$(ENCAPP) $(DIR_BUILD)/$(DECAPP) $(DIR_INSTALL)/bin install -m 644 $(DIR_SRC)/common/include/*.h $(DIR_INSTALL)/include/libjxr/common install -m 644 $(DIR_SRC)/image/x86/*.h $(DIR_INSTALL)/include/libjxr/image/x86 @ 1.2 log @Update jxrlib to 1.4.4 Motivated by wiz@@ in https://mail-index.netbsd.org/pkgsrc-users/2026/10/26/msg043665.html Breaking change: include directory renamed from jxrlib to libjxr Changelog * V1.4.4; 2026/10/09 + Fix potential size_t overflow in the memory allocation limit check of calloc_lim * V1.4.3; 2026/09/02 + tmpnam security mitigations: o Use a local buffer instead of its internal one o Fail to open file if it exists (requires C11) * V1.4.2; 2026/07/07 + Fix buffer overflow in outputNChannel (OSS Fuzz 532002884) * V1.4.1; 2026/06/03 + Fix Use-of-uninitialized-value in ReadContainer (OSS Fuzz 517870853) * V1.4.0; 2026/05/29 + Support for memory allocation limit via PKAlloc_SetLimit / PKAlloc_GetLimit API + Added PKLibJxr_GetVersion API to get library version + Unmaintained ASM X86 code moved to Unmaintained folder (it should not be used) + Fix memory leaks (OSS Fuzz 396171604, 511636124) + Fix crash in PKImageDecode_Copy_WMP (testcase s957297735_f50_tp5-testcard_gray16.jxr) + Fix issues found by github Security and quality * V1.3.8; 2026/05/21 + Fix DPI conversion accuracy in BMPs + Fix compilation error using GCC 15.2 * V1.3.7; 2026/05/13 + Fix Invalid-enum-value in ParsePFDEntry (OSS Fuzz 511393476) * V1.3.6; 2026/05/07 + Fix Use-of-uninitialized-value in PKFormatConverter_InitializeConvert (OSS Fuzz 506459298) + Fix Use-of-uninitialized-value in ReadWMIHeader (OSS Fuzz 508365265) + Fix buffer read overflow in ReadContainer * V1.3.5; 2026/04/29 + Changelog updated with list of fixed issues + Fix some compiler warnings * V1.3.4; 2026/04/27 + Fix memory leaks in PKImageDecode_Copy_WMP (OSS Fuzz 396171610) + Fix Null-dereference READ in invTransformMacroblock (OSS Fuzz 506921661) * V1.3.3; 2026/04/20 + Fix memory leak when Caption metadata is present (OSS Fuzz 396172316) * V1.3.2; 2026/04/13 + Fix Abrt in ImageStrDecTerm (OSS Fuzz 497787225) * V1.3.1; 2025/10/23 + First release with multiple security fixes o OSS Fuzz 404307109, 379254062, 378836895, 377965577, 373025984, 373025974, 372598913, 372547401, 372524130 o Others not tracked via online systems o Should also fixes CVE-2019-12212 + Fix compilation error on macOS + Sources converted to UTF-8 encoding @ text @d6 1 a6 1 --- Makefile.orig 2026-10-30 08:23:51.992400861 +0000 d17 18 @ 1.1 log @Fix libjxr on big endian systems and fix warnings Add patches from FreeBSD ports that fix build warnings. For the patches to apply correctly, add conversion to unix style linebreaks. Define _BIG__ENDIAN_ on big endian systems to make the package behave correctly when running on them. As pointed out in jxrlibs makefile. Bump pkgrevision and abi depends due to the big endian change. @ text @d2 5 a6 2 * take in CFLAGS from the environment so that _BIG__ENDIAN_ can be added --- Makefile.orig 2019-11-25 19:14:40.081612047 +0000 d8 3 a10 3 @@@@ -39,7 +39,7 @@@@ DIR_GLUE=jxrgluelib DIR_TEST=jxrtestlib DIR_EXEC=jxrencoderdecoder d12 4 a15 2 -CFLAGS=-I. -Icommon/include -I$(DIR_SYS) -D__ANSI__ -DDISABLE_PERF_MEASUREMENT -w -O +CFLAGS+=-I. -Icommon/include -I$(DIR_SYS) -D__ANSI__ -DDISABLE_PERF_MEASUREMENT -w -O d17 13 a29 2 ## Add following flag to CFLAGS above if target is a big endian machine ## -D_BIG__ENDIAN_ @