Skip to content

Release v4.8.1 merge to master#6538

Closed
kuny0707 wants to merge 119 commits intomasterfrom
release_v4.8.1
Closed

Release v4.8.1 merge to master#6538
kuny0707 wants to merge 119 commits intomasterfrom
release_v4.8.1

Conversation

@kuny0707
Copy link
Contributor

@kuny0707 kuny0707 commented Feb 3, 2026

What does this PR do?
Merge release_v4.8.1 to master

InventiveCoder and others added 30 commits December 10, 2024 14:18
Signed-off-by: InventiveCoder <liucongcong@outlook.com>
Signed-off-by: xiaochangbai <704566072@qq.com>
opt(framework): optimization Help Instruction
# Conflicts:
#	framework/src/main/java/org/tron/program/FullNode.java
fix(doc): fix some typos in comment
 feat(doc): update expired information for readme
fix(CheckStyle): only fix CheckStyle
  1. Bump commons-io from 2.11.0 to 2.18.0 to fix CVE-2024-47554.
  2. Bump jackson-databind from 2.13.4.2 to 2.18.3 to fix CVE-2023-35116, CVE-2025-52999.
  3. Bump java-util from 1.8.0 to 3.2.0 to fix CVE-2023-34610.
  4. Bump libp2p from 2.2.5 to 2.2.6.
  5. Bump jetty from 9.4.53 to 9.4.57 to fix CVE-2024-8184.
  6. Bump spring from 5.3.18 to 5.3.39 to fix CVE-2023-20863, CVE-2024-38820, CVE-2022-22968, CVE-2022-22970.
  7. Remove spring-tx, spring-web, hamcrest-junit, guice, java-sizeof, vavr.
feat(doc): update readme for telegram groups and doc link
lvs0075 and others added 20 commits December 29, 2025 10:52
feat(*): disable market transaction
…riction

func(vm): optimize selfdestruct restriction
feat(db): optimize the logic for obtaining transactions that require signature verification
feat(net): optimize transaction processing logic
* feat(*): disable exchange transaction (#6507)
* update a new version. version name:GreatVoyage-v4.8.0-1-g45e3bf88ca,version code:18634 (#6508)
…6514)

* fix: throw exception if system shielded tx is not supported.
* update the exception msg.
)

* feat(event): optimize the event cache solidId update logic

* add unit test
byte[] s = Arrays.copyOfRange(sign, 32, 64);
byte v = sign[64];
if (v < 27) {
v += 27; //revId -> v

Check failure

Code scanning / CodeQL

Implicit narrowing conversion in compound assignment High

Implicit cast of source type int to narrower destination type
byte
.

Copilot Autofix

AI 2 days ago

In general, implicit narrowing in compound assignments like v += 27 should be avoided when the left-hand side is a smaller type (here, byte) and the right-hand side is an int. The safest fix is to make the narrowing conversion explicit so that it is clear to readers and tools that this is intentional, and to avoid the compound assignment that hides the cast.

For this specific case in crypto/src/main/java/org/tron/common/crypto/Rsv.java, replace the compound assignment v += 27; with a simple assignment that explicitly casts the sum back to byte: v = (byte) (v + 27);. This keeps the exact same runtime behavior (still subject to the same overflow/wrap semantics as before) but removes the implicit narrowing and makes the intent clear. No additional imports, methods, or definitions are needed; the change is limited to the single line inside fromSignature.

Suggested changeset 1
crypto/src/main/java/org/tron/common/crypto/Rsv.java

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/crypto/src/main/java/org/tron/common/crypto/Rsv.java b/crypto/src/main/java/org/tron/common/crypto/Rsv.java
--- a/crypto/src/main/java/org/tron/common/crypto/Rsv.java
+++ b/crypto/src/main/java/org/tron/common/crypto/Rsv.java
@@ -19,7 +19,7 @@
     byte[] s = Arrays.copyOfRange(sign, 32, 64);
     byte v = sign[64];
     if (v < 27) {
-      v += 27; //revId -> v
+      v = (byte) (v + 27); //revId -> v
     }
     return new Rsv(r, s, v);
   }
EOF
@@ -19,7 +19,7 @@
byte[] s = Arrays.copyOfRange(sign, 32, 64);
byte v = sign[64];
if (v < 27) {
v += 27; //revId -> v
v = (byte) (v + 27); //revId -> v
}
return new Rsv(r, s, v);
}
Copilot is powered by AI and may make mistakes. Always verify output.
@kuny0707 kuny0707 changed the title Release v4.8.1 Release v4.8.1 merge to master Feb 3, 2026
@kuny0707 kuny0707 closed this Feb 3, 2026
@kuny0707 kuny0707 reopened this Feb 3, 2026
@kuny0707 kuny0707 closed this Feb 3, 2026
@kuny0707 kuny0707 reopened this Feb 3, 2026
@kuny0707 kuny0707 closed this Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.