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

Fix: ensure the value in range #828

Merged
merged 14 commits into from
Dec 15, 2023
Merged

Conversation

Jim8y
Copy link
Contributor

@Jim8y Jim8y commented Dec 10, 2023

There is a bug in the compiler where uint -- can be less than 0:

for(uint i = 6; i<7;i--) ;

can run forever until oom.

@Jim8y Jim8y requested a review from shargon December 10, 2023 15:11
@Jim8y Jim8y marked this pull request as draft December 10, 2023 23:10
@Jim8y
Copy link
Contributor Author

Jim8y commented Dec 10, 2023

there are other cases that also need to be fixed, expecially checked and unchecked not working for -- and ++, will keep working later.

@Jim8y
Copy link
Contributor Author

Jim8y commented Dec 10, 2023

@shargon please check this out, this is a bug found by @vang1ong7ang

shargon
shargon previously approved these changes Dec 11, 2023
@Jim8y
Copy link
Contributor Author

Jim8y commented Dec 11, 2023

@shargon all tested, good to go.

@Jim8y Jim8y marked this pull request as ready for review December 11, 2023 08:37
shargon and others added 5 commits December 11, 2023 10:37
…pack-dotnet into fix-unary-expression

* 'fix-unary-expression' of github.com:Liaojinghui/neo-devpack-dotnet:
  Update tests/Neo.Compiler.CSharp.UnitTests/TestClasses/Contract_Inc_Dec.cs
  Update tests/Neo.Compiler.CSharp.UnitTests/UnitTest_Inc_Dec.cs
  Update tests/Neo.Compiler.CSharp.UnitTests/UnitTest_Inc_Dec.cs
  Update src/Neo.Compiler.CSharp/MethodConvert.cs
@Jim8y Jim8y added the bug label Dec 12, 2023
@shargon shargon merged commit 5e4c87d into neo-project:master Dec 15, 2023
2 checks passed
@Jim8y Jim8y deleted the fix-unary-expression branch December 15, 2023 10:17
Jim8y added a commit to Jim8y/neo-devpack-dotnet that referenced this pull request Dec 15, 2023
…et into storage-get

* 'storage-get' of github.com:Liaojinghui/neo-devpack-dotnet:
  Storage backed properties (neo-project#745)
  Fix: ensure the value in range (neo-project#828)
Jim8y added a commit to Jim8y/neo-devpack-dotnet that referenced this pull request Dec 18, 2023
* master:
  Update action steps and fixed myget (neo-project#838)
  add IsEven (neo-project#837)
  Storage backed properties (neo-project#745)
  Fix: ensure the value in range (neo-project#828)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants