SWC-registry icon indicating copy to clipboard operation
SWC-registry copied to clipboard

Adding the new SWC-137 weakness related to shadowed_memory_variables

Open mojtaba-eshghie opened this issue 2 years ago • 0 comments

I added SWC-137 related to the shadowing of local variables of the function (memory variables) by the named return variables. This very probable weakness is also reported wrongly by the compiler as shadowed named return variable not the variable declared inside function which makes it even more misleading. https://github.com/mojtaba-eshghie/SWC-registry/commit/4d5defa2f995a40683e24a8eb6a1522474f87136

mojtaba-eshghie avatar Jun 29 '22 13:06 mojtaba-eshghie