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

【llbc】增加嵌套重名变量检测及已有代码问题修正 #341

Open
lailongwei opened this issue Dec 25, 2024 · 0 comments
Open
Assignees

Comments

@lailongwei
Copy link
Owner

嵌套重名变量极端情况下将引发难以排查的问题,示例:

int Foo()
{
    int ret = LLBC_OK;
    while (...)
    {
        int ret = XXX();
        if (ret != LLBC_OK)
            break;
    }

    // 致命问题: while中的ret嵌套同名定义, 导致返回值实际是LLBC_OK
    return ret;
}

相关技术文档:

@lailongwei lailongwei added this to llbc Dec 25, 2024
@lailongwei lailongwei converted this from a draft issue Dec 25, 2024
@lailongwei lailongwei moved this from Todo to In Progress in llbc Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

2 participants