electron33: update to 33.2.0.
This commit is contained in:
parent
cd9f8f7d57
commit
3661c69d10
2 changed files with 35 additions and 4 deletions
31
srcpkgs/electron33/patches/spellchecker-infinate-loop.patch
Normal file
31
srcpkgs/electron33/patches/spellchecker-infinate-loop.patch
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
From 9f6ee267adabcbd3348dd1a4daf57843aef14050 Mon Sep 17 00:00:00 2001
|
||||||
|
From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com>
|
||||||
|
Date: Fri, 13 Dec 2024 16:47:55 +0000
|
||||||
|
Subject: [PATCH] fix: custom spell-checker stuck in infinite loop
|
||||||
|
|
||||||
|
`ReadUnicodeCharacter` updates index to the last character read, and not after it. We need to manually increment it to move to the next character.
|
||||||
|
|
||||||
|
It also doesn't validate that the index is valid, so we need to check that index is within bounds.
|
||||||
|
|
||||||
|
Refs: #44336
|
||||||
|
|
||||||
|
Co-authored-by: Jesper Ek <deadbeef84@gmail.com>
|
||||||
|
---
|
||||||
|
shell/renderer/api/electron_api_spell_check_client.cc | 4 +++-
|
||||||
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/shell/renderer/api/electron_api_spell_check_client.cc b/shell/renderer/api/electron_api_spell_check_client.cc
|
||||||
|
index b97f1771ff723..95e05ecccb524 100644
|
||||||
|
--- a/src/electron/shell/renderer/api/electron_api_spell_check_client.cc
|
||||||
|
+++ b/src/electron/shell/renderer/api/electron_api_spell_check_client.cc
|
||||||
|
@@ -32,7 +32,9 @@ namespace {
|
||||||
|
|
||||||
|
bool HasWordCharacters(const std::u16string& text, size_t index) {
|
||||||
|
base_icu::UChar32 code;
|
||||||
|
- while (base::ReadUnicodeCharacter(text.c_str(), text.size(), &index, &code)) {
|
||||||
|
+ while (index < text.size() &&
|
||||||
|
+ base::ReadUnicodeCharacter(text.c_str(), text.size(), &index, &code)) {
|
||||||
|
+ ++index;
|
||||||
|
UErrorCode error = U_ZERO_ERROR;
|
||||||
|
if (uscript_getScript(code, &error) != USCRIPT_COMMON)
|
||||||
|
return true;
|
|
@ -1,9 +1,9 @@
|
||||||
# Template file for 'electron33'
|
# Template file for 'electron33'
|
||||||
pkgname=electron33
|
pkgname=electron33
|
||||||
version=33.0.2
|
version=33.2.0
|
||||||
revision=1
|
revision=1
|
||||||
_nodever=20.18.0
|
_nodever=20.18.0
|
||||||
_chromiumver=130.0.6723.59
|
_chromiumver=130.0.6723.118
|
||||||
archs="x86_64* aarch64*"
|
archs="x86_64* aarch64*"
|
||||||
create_wrksrc=yes
|
create_wrksrc=yes
|
||||||
build_wrksrc="src"
|
build_wrksrc="src"
|
||||||
|
@ -27,8 +27,8 @@ homepage="https://electronjs.org"
|
||||||
distfiles="https://github.com/electron/electron/archive/v$version.tar.gz>electron-${version}.tar.gz
|
distfiles="https://github.com/electron/electron/archive/v$version.tar.gz>electron-${version}.tar.gz
|
||||||
https://commondatastorage.googleapis.com/chromium-browser-official/chromium-$_chromiumver.tar.xz
|
https://commondatastorage.googleapis.com/chromium-browser-official/chromium-$_chromiumver.tar.xz
|
||||||
https://github.com/nodejs/node/archive/v$_nodever.tar.gz>node-$_nodever.tar.gz"
|
https://github.com/nodejs/node/archive/v$_nodever.tar.gz>node-$_nodever.tar.gz"
|
||||||
checksum="c6d3be16998ee1f92020078e39dd5c7ea98a1222d2f68919b533ef7f507521fa
|
checksum="6a0589bbdbf1d5ccc8508b536c1beeb5f49cedb1806dc0de9b04f568946be056
|
||||||
90401be8adcd6f580db5c71ea865c97db0e719ba41f406f5869fc7f44bd20e4f
|
a0a9a740ebb864e89febf4d5480ffbf31b45ac5a506ae70184fa842e27b2d177
|
||||||
651bb82f6af18084070893559643759165ce050b5839f830d4cc098130d3ad89"
|
651bb82f6af18084070893559643759165ce050b5839f830d4cc098130d3ad89"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue