Skip to content

Commit 04f0ce0

Browse files
committed
Buglist entry
1 parent 8e32bea commit 04f0ce0

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

docs/bugs.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
[
2+
{
3+
"uid": "SOL-2026-2",
4+
"name": "CustomErrorNamedParametersEncodedInWrongOrder",
5+
"summary": "Custom error arguments passed using named parameters are ABI-encoded in call order instead of declaration order when compiling via IR.",
6+
"description": "When a custom error is instantiated using named parameters (e.g., `require(cond, MyError({b: 1, a: 2}))`), the IR-based code generator incorrectly encodes the arguments in the order they appear at the call site rather than in the order the parameters are declared in the error definition. This results in silently wrong ABI-encoded revert data, swapping argument values relative to their declared positions. The legacy pipeline is not affected.",
7+
"link": "https://blog.soliditylang.org/2026/04/01/custom-error-named-parameters-encoded-in-wrong-order-bug/",
8+
"introduced": "0.8.26",
9+
"fixed": "0.8.35",
10+
"severity": "very low",
11+
"conditions": {
12+
"viaIR": true
13+
}
14+
},
215
{
316
"uid": "SOL-2026-1",
417
"name": "TransientStorageClearingHelperCollision",

docs/bugs_by_version.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2001,25 +2001,29 @@
20012001
},
20022002
"0.8.26": {
20032003
"bugs": [
2004+
"CustomErrorNamedParametersEncodedInWrongOrder",
20042005
"LostStorageArrayWriteOnSlotOverflow"
20052006
],
20062007
"released": "2024-05-21"
20072008
},
20082009
"0.8.27": {
20092010
"bugs": [
2011+
"CustomErrorNamedParametersEncodedInWrongOrder",
20102012
"LostStorageArrayWriteOnSlotOverflow"
20112013
],
20122014
"released": "2024-09-04"
20132015
},
20142016
"0.8.28": {
20152017
"bugs": [
2018+
"CustomErrorNamedParametersEncodedInWrongOrder",
20162019
"TransientStorageClearingHelperCollision",
20172020
"LostStorageArrayWriteOnSlotOverflow"
20182021
],
20192022
"released": "2024-10-09"
20202023
},
20212024
"0.8.29": {
20222025
"bugs": [
2026+
"CustomErrorNamedParametersEncodedInWrongOrder",
20232027
"TransientStorageClearingHelperCollision",
20242028
"LostStorageArrayWriteOnSlotOverflow"
20252029
],
@@ -2041,32 +2045,38 @@
20412045
},
20422046
"0.8.30": {
20432047
"bugs": [
2048+
"CustomErrorNamedParametersEncodedInWrongOrder",
20442049
"TransientStorageClearingHelperCollision",
20452050
"LostStorageArrayWriteOnSlotOverflow"
20462051
],
20472052
"released": "2025-05-07"
20482053
},
20492054
"0.8.31": {
20502055
"bugs": [
2056+
"CustomErrorNamedParametersEncodedInWrongOrder",
20512057
"TransientStorageClearingHelperCollision",
20522058
"LostStorageArrayWriteOnSlotOverflow"
20532059
],
20542060
"released": "2025-12-03"
20552061
},
20562062
"0.8.32": {
20572063
"bugs": [
2064+
"CustomErrorNamedParametersEncodedInWrongOrder",
20582065
"TransientStorageClearingHelperCollision"
20592066
],
20602067
"released": "2025-12-18"
20612068
},
20622069
"0.8.33": {
20632070
"bugs": [
2071+
"CustomErrorNamedParametersEncodedInWrongOrder",
20642072
"TransientStorageClearingHelperCollision"
20652073
],
20662074
"released": "2025-12-18"
20672075
},
20682076
"0.8.34": {
2069-
"bugs": [],
2077+
"bugs": [
2078+
"CustomErrorNamedParametersEncodedInWrongOrder"
2079+
],
20702080
"released": "2026-02-18"
20712081
},
20722082
"0.8.4": {

0 commit comments

Comments
 (0)