-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
前27个文件 #5
base: main
Are you sure you want to change the base?
The head ref may contain hidden characters: "web3\u6E38\u6C11"
前27个文件 #5
Conversation
@@ -0,0 +1,99 @@ | |||
# 批准骗局 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approve 翻译为授权
[DataLocation.sol](https://github.com/SunWeb3Sec/DeFiVulnLabs/blob/main/src/test/DataLocation.sol) | ||
**名称:** 数据位置混淆漏洞 | ||
**描述:** | ||
updaterewardDebt函数中滥用用户的存储和内存引用。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
滥用 -> 误用/错用
https://www.educative.io/answers/storage-vs-memory-in-solidity | ||
|
||
|
||
数组合约:(紫色字为固定功能) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
固定功能 ? 修复
**名称:** 在高于0.8.15版本Solidity中的脏字节 | ||
将字节数组从memory或calldata复制到storage是以32字节为单位进行的,即使长度不是32的倍数。 | ||
因此,超出数组末尾的额外字节可以从calldata或memory复制到storage。 | ||
这些脏字节可能会在.push()之后变得可观察,而无需存储中字节数组的参数,即这样的push不会像预期的那样在数组末尾产生零值。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
读不通, 没有参数 是 修饰 .push()
No description provided.