From d0a78412221f89e0cbd64aed2a18c24fd035cb49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Wed, 7 Jun 2023 08:14:40 +0200 Subject: [PATCH] Sync from SUSE:ALP:Source:Standard:1.0 mujs revision 7f4c75caf863faa7f276a41d395d2d42 --- .gitattributes | 23 +++++++++++++ mujs-1.3.2.tar.xz | 3 ++ mujs.changes | 88 +++++++++++++++++++++++++++++++++++++++++++++++ mujs.spec | 67 ++++++++++++++++++++++++++++++++++++ 4 files changed, 181 insertions(+) create mode 100644 .gitattributes create mode 100644 mujs-1.3.2.tar.xz create mode 100644 mujs.changes create mode 100644 mujs.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/mujs-1.3.2.tar.xz b/mujs-1.3.2.tar.xz new file mode 100644 index 0000000..b4d3675 --- /dev/null +++ b/mujs-1.3.2.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4886593fc688b0cdccd31e5ecbe5afe7ad1bee23aa69e667b871afd5dfc640c3 +size 100076 diff --git a/mujs.changes b/mujs.changes new file mode 100644 index 0000000..f99e8a7 --- /dev/null +++ b/mujs.changes @@ -0,0 +1,88 @@ +------------------------------------------------------------------- +Sat Mar 11 09:32:09 UTC 2023 - Luigi Baldoni + +- Allow build on leap + +------------------------------------------------------------------- +Sat Jan 14 11:41:55 UTC 2023 - ecsos + +- Update to 1.3.2 + * https://git.ghostscript.com/?p=mujs.git;a=log;h=refs/tags/1.3.2 + * 1.3.2 patch release for UAF bug fix. + * Bug 706057: Fix use-after-free in getOwnPropertyDescriptor. + * Set length of output array Array.prototype.map. +- Update to 1.3.1 + * https://git.ghostscript.com/?p=mujs.git;a=log;h=refs/tags/1.3.1 + * Make a patch release for important iterator bug fix. + * Issue #166: Use special iterator for string and array indices. + * Enable choice of library version for shell + * Use $(@D) instead of $(dir $@) +- Update to 1.3.0 + * https://git.ghostscript.com/?p=mujs.git;a=log;h=refs/tags/1.3.0 + * Avoid freeing buffer twice in case of error. + * Fast path for "simple" arrays. + * Bug 705775: Fix double fclose in pretty-printing tool. + * Makefile: fix parallel builds + * Guard state initialization with try to avoid panic in initialization. + * Add js_isbooleanobject and js_isdateobject functions. + * Issue #161: Cope with empty programs in mujs-pp. + * Issue #161: Don't fclose a FILE that is NULL. + * Issue #162: Check stack overflow during regexp compilation. + * Bug 705052: Don't use private STACK/TOP macros in jsstate.c + * Add "console" object to mujs shell. + * Issue #156: Fix check for duplicate formal parameters when strict. + * Some minor optimizations to Ap_join. + * array join: avoid strcat, speedup from O(N^2) to O(N) +- Drop mujs-1.2.0-stack-exhaustion.patch because now in upstream. + +------------------------------------------------------------------- +Wed May 18 15:45:51 UTC 2022 - Илья Индиго + +- Added mujs-1.2.0-stack-exhaustion.patch (CVE-2022-30974, boo#1199678). + +------------------------------------------------------------------- +Mon Feb 15 13:12:21 UTC 2022 - Илья Индиго + +- Updated to 1.2.0 + * https://git.ghostscript.com/?p=mujs.git;a=log;h=refs/tags/1.2.0 + * Fixed heap buffer overflow (CVE-2021-45005, boo#1195954). + +------------------------------------------------------------------- +Sun Jun 27 11:43:00 UTC 2021 - Илья Индиго + +- Updated to 1.1.3 + * https://git.ghostscript.com/?p=mujs.git;a=log;h=refs/tags/1.1.3 + * Fixed error in Array.prototype.toString(). + +------------------------------------------------------------------- +Mon May 17 11:36:21 UTC 2021 - Ferdinand Thiessen + +- Update mujs 1.1.2 + * Check for overflow when reading floating point exponent + * Fix use-after-free in regexp source property access. + +------------------------------------------------------------------- +Wed Apr 14 22:08:53 UTC 2021 - Ferdinand Thiessen + +- Update mujs 1.1.1 + * Fix: Always create new scope for eval() + * Don't redefine/reset existing vars in script code + * Fix: RegExp.prototype should be a regular expression object + * Throw when redefining non-configurable/readonly properties + * Array: Fix crash when length is negative + * fix split doesn't convert context to string if no argument is passed + * Parse integers with floats to support large numbers. + * Optimize array construction bytecode. + * Fix: Expose type of value as an enum with js_type() + * Fixed js_strtol: Prevent negative table indexing in +- Update mujs 1.1.0 + * Don't allow creating new properties on transient objects. + * Fixed escape characters in regex parser + * Handle NaN in Date accessors + * Handle undefined argument to Error constructor +- Fixed RPM error because of missing RPM group + +------------------------------------------------------------------- +Thu Mar 11 12:50:28 UTC 2021 - Илья Индиго + +- Initialization mujs 1.0.9. diff --git a/mujs.spec b/mujs.spec new file mode 100644 index 0000000..acce653 --- /dev/null +++ b/mujs.spec @@ -0,0 +1,67 @@ +# +# spec file for package mujs +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: mujs +Version: 1.3.2 +Release: 0 +Summary: An embeddable Javascript interpreter +License: AGPL-3.0-or-later +Group: Development/Languages/C and C++ +URL: https://mujs.com +Source0: https://mujs.com/downloads/%{name}-%{version}.tar.xz +BuildRequires: pkgconfig +%if 0%{?suse_version} > 1500 +BuildRequires: pkgconfig(readline) +%else +BuildRequires: readline-devel +%endif + +%description +MuJS is a lightweight Javascript interpreter designed for embedding in other software to extend them with scripting capabilities. + +%package devel +Summary: MuJS development files +Group: Development/Languages/C and C++ +Provides: %{name}-static = %{version} + +%description devel +This package provides the MuJS static library. + +%prep +%autosetup -p1 + +%build +%global _lto_cflags %{_lto_cflags} -ffat-lto-objects +%make_build debug CFLAGS="%{optflags} -fPIC" + +%install +%make_install prefix="%{_prefix}" libdir="%{_libdir}" CFLAGS="%{optflags} -fPIC" + +%files +%license COPYING +%doc AUTHORS README +%{_bindir}/%{name} + +%files devel +%license COPYING +%doc AUTHORS README +%{_libdir}/pkgconfig/%{name}.pc +%{_includedir}/%{name}.h +%{_libdir}/lib%{name}.a + +%changelog