Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

CHANGLIFE
Copy link
Collaborator

No description provided.

@@ -0,0 +1,99 @@
# 批准骗局
Copy link
Collaborator

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函数中滥用用户的存储和内存引用。
Copy link
Collaborator

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


数组合约:(紫色字为固定功能)
Copy link
Collaborator

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不会像预期的那样在数组末尾产生零值。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

读不通, 没有参数 是 修饰 .push()

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.

2 participants