From 9d8a0a6f829ee9cbee06e1c84f3ff2ccd5b7e250 Mon Sep 17 00:00:00 2001 From: hrkrshnn Date: Wed, 29 Sep 2021 11:43:40 +0200 Subject: [PATCH] Buglist entry for UserDefinedValueTypesBug --- docs/bugs.json | 11 +++++++++++ docs/bugs_by_version.json | 1 + 2 files changed, 12 insertions(+) diff --git a/docs/bugs.json b/docs/bugs.json index f6ce8f6fe..0b72c05c7 100644 --- a/docs/bugs.json +++ b/docs/bugs.json @@ -1,4 +1,15 @@ [ + { + "uid": "SOL-2021-4", + "name": "UserDefinedValueTypesBug", + "summary": "User defined value types with underlying type shorter than 32 bytes used incorrect storage layout and wasted storage", + "description": "The compiler did not correctly compute the storage layout of user defined value types based on types that are shorter than 32 bytes. It would always use a full storage slot for these types, even if the underlying type was shorter. This was wasteful and might have problems with tooling or contract upgrades.", + "link": "https://blog.soliditylang.org/2021/09/29/user-defined-value-types-bug/", + "introduced": "0.8.8", + "fixed": "0.8.9", + "severity": "very low" + + }, { "uid": "SOL-2021-3", "name": "SignedImmutables", diff --git a/docs/bugs_by_version.json b/docs/bugs_by_version.json index c6af59bda..bfba53e45 100644 --- a/docs/bugs_by_version.json +++ b/docs/bugs_by_version.json @@ -1585,6 +1585,7 @@ }, "0.8.8": { "bugs": [ + "UserDefinedValueTypesBug", "SignedImmutables" ], "released": "2021-09-27"