[packages/quickjs] - added patch - rel 2
witekfl
witekfl at pld-linux.org
Sat Dec 25 12:52:44 CET 2021
commit 0715a3e22b94950e88e8c2c41e04949314b83dcf
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date: Sat Dec 25 12:52:19 2021 +0100
- added patch
- rel 2
q.diff | 13 +++++++++++++
quickjs.spec | 4 +++-
2 files changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/quickjs.spec b/quickjs.spec
index c7c7293..f254c78 100644
--- a/quickjs.spec
+++ b/quickjs.spec
@@ -3,12 +3,13 @@ Summary: QuickJS Javascript Engine
Summary(pl.UTF-8): Silnik Javascriptu QuickJS
Name: quickjs
Version: 20210327
-Release: 1
+Release: 2
License: MIT
Group: Libraries
Source0: https://bellard.org/%{name}/%{name}-%{ver}.tar.xz
# Source0-md5: 135182a626aa0c87a49aa2bf58fd39bf
Patch0: rpmpldcflags.patch
+Patch1: q.diff
URL: https://bellard.org/quickjs/
BuildRequires: make
BuildRequires: libtool
@@ -43,6 +44,7 @@ Pliki nagłówkowe biblioteki %{name}.
%prep
%setup -q -n %{name}-%{ver}
%patch0 -p1
+%patch1 -p1
%build
%{__make} RPMPLDCFLAGS="%{rpmcflags}" \
diff --git a/q.diff b/q.diff
new file mode 100644
index 0000000..363f1a7
--- /dev/null
+++ b/q.diff
@@ -0,0 +1,13 @@
+diff --git a/quickjs.c b/quickjs.c
+index c3f98e2e0..3b59284e6 100644
+--- a/quickjs.c
++++ b/quickjs.c
+@@ -7858,6 +7858,8 @@ static JSValue JS_GetPropertyValue(JSContext *ctx, JSValueConst this_obj,
+ uint32_t idx, len;
+ /* fast path for array access */
+ p = JS_VALUE_GET_OBJ(this_obj);
++ if (unlikely(!p->fast_array))
++ goto slow_path;
+ idx = JS_VALUE_GET_INT(prop);
+ len = (uint32_t)p->u.array.count;
+ if (unlikely(idx >= len))
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/quickjs.git/commitdiff/0715a3e22b94950e88e8c2c41e04949314b83dcf
More information about the pld-cvs-commit
mailing list