Felix Yan pushed to branch main at Arch Linux / Packaging / Packages / pcre2
Commits: 23adeb7f by lbonn at 2024-04-03T15:17:35+02:00 Fix thread safety issue with upstream sljit patch Crashes were reported by several users when using pcre2 in a multi-threaded context. The fix has been confirmed and merged by upstream but, as this bug can cause memory corruption in a widely used library, it may make sense to patch this before the next release. References: * https://github.com/PCRE2Project/pcre2/issues/402 * https://github.com/zherczeg/sljit/pull/244 * https://github.com/davatorium/rofi/issues/1966 * https://bugs.kde.org/show_bug.cgi?id=484514 - - - - - 1 changed file: - PKGBUILD Changes: ===================================== PKGBUILD ===================================== @@ -17,13 +17,16 @@ optdepends=('sh: for pcre2-config') provides=(libpcre2-{8,16,32,posix}.so) options=(staticlibs) source=("$url/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.bz2"{,.sig} - https://github.com/zherczeg/sljit/commit/56dbde07b05252f0b304b04040a86cfb9f109ae9.patch) + https://github.com/zherczeg/sljit/commit/56dbde07b05252f0b304b04040a86cfb9f109ae9.patch + https://github.com/zherczeg/sljit/commit/ad89dd8ecd25589d236bd20b36f2abf69f938fd1.patch) sha512sums=('8ac1520c32e9e5672404aaf6104e23c9ee5c3c28ad28ff101435599d813cbb20e0491a3fd34e012b4411b3e0366a4c6dfa3f02d093acaa6ff0ab25478bb7ade9' 'SKIP' - '4379a06a142a9c9dc61298e86c722f1f2b6d83493acda8e472c866093b3e2192d315998c5a87dfd231739394d5c809c05415126084b18f80a002ee8861c0ed4f') + '4379a06a142a9c9dc61298e86c722f1f2b6d83493acda8e472c866093b3e2192d315998c5a87dfd231739394d5c809c05415126084b18f80a002ee8861c0ed4f' + '9548da45cb030f53b634a9ba340687d04bd6c5b88ffd78932f231a4092e5cc99b0698941fbd4f88d9a905bed0d0a85c5da697da9a531c4c4efc8f7578d0ffefe') b2sums=('f87f9f36dd6a806cdba1f077f51b53da2583f1898f83e41d594622b28ac8efbc1b2d122b752a9d6cd461fe0e3c7c85ee93358443df518a336da4ee9d72cca808' 'SKIP' - '736aa7eaa2ed571117f545ae78151fda6a5ef5935bf70f132b1d20d0ff6e46543194f409a02eac727a8209fb0d25e6870705e8a95b3feb07e799d288fd852822') + '736aa7eaa2ed571117f545ae78151fda6a5ef5935bf70f132b1d20d0ff6e46543194f409a02eac727a8209fb0d25e6870705e8a95b3feb07e799d288fd852822' + '9ad1b0dca06cf3620158458e26c2007fb46990bdf178a75a621be5c665e8726990789510827829e9c480cbebee0b3b5da27f9857e3b19019307e4959671dfbac') validpgpkeys=('45F68D54BBE23FB3039B46E59766E084FB0F43D8') # Philip Hazel <[email protected]> build() { @@ -32,6 +35,10 @@ build() { # [PATCH] Add xgetbv feature detection support on x86 patch -Np2 -i "$srcdir"/56dbde07b05252f0b304b04040a86cfb9f109ae9.patch -d src/sljit + # Fix thread-safety issue in sljit's allocator + # [PATCH] Fix locking region in sjlit_malloc_exec + patch -Np2 -i "$srcdir"/ad89dd8ecd25589d236bd20b36f2abf69f938fd1.patch -d src/sljit + # use fat LTO objects for static libraries CFLAGS+=" -ffat-lto-objects" CXXFLAGS+=" -ffat-lto-objects" View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/pcre2/-/commit/23adeb7f5ea823a3e643de962a1fdae2c75d5142 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/pcre2/-/commit/23adeb7f5ea823a3e643de962a1fdae2c75d5142 You're receiving this email because of your account on gitlab.archlinux.org.
