-
Notifications
You must be signed in to change notification settings - Fork 121
Out of bounds test #365
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
Closed
Out of bounds test #365
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
a69af9c
make oob test
FloorLamp 828d23b
Check overflow of reference and closure tables
nomeata 826fe76
Backend: Do not complain about (de)serializing Non
nomeata 9180b32
OOM example: Avoid `async ()`.
nomeata 45ab36d
Grow memory during GC if needed
nomeata File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
stdlib/examples/produce-exchange/test/memory-access-oob.as
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| let A = (import "../serverActor.as"); | ||
|
|
||
| actor test { | ||
|
|
||
| func go() : async Text { | ||
| let s = A.Server(); | ||
|
|
||
| let r = await s.registrarAddRegion("region", ""); | ||
| print "\nAdded region"; | ||
|
|
||
| ignore(await s.registrarAddUser("0", "0", "", 0, true, true, true, true)); print "\nAdded user 0"; | ||
| ignore(await s.registrarAddUser("1", "1", "", 0, true, true, true, true)); print "\nAdded user 1"; | ||
| ignore(await s.registrarAddUser("2", "2", "", 0, true, true, true, true)); print "\nAdded user 2"; | ||
| ignore(await s.registrarAddUser("3", "3", "", 0, true, true, true, true)); print "\nAdded user 3"; | ||
| ignore(await s.registrarAddUser("4", "4", "", 0, true, true, true, true)); print "\nAdded user 4"; | ||
| ignore(await s.registrarAddUser("5", "5", "", 0, true, true, true, true)); print "\nAdded user 5"; | ||
| ignore(await s.registrarAddUser("6", "6", "", 0, true, true, true, true)); print "\nAdded user 6"; | ||
| ignore(await s.registrarAddUser("7", "7", "", 0, true, true, true, true)); print "\nAdded user 7"; | ||
| ignore(await s.registrarAddUser("8", "8", "", 0, true, true, true, true)); print "\nAdded user 8"; | ||
| ignore(await s.registrarAddUser("9", "9", "", 0, true, true, true, true)); print "\nAdded user 9"; | ||
| ignore(await s.registrarAddUser("10", "10", "", 0, true, true, true, true)); print "\nAdded user 10"; | ||
| ignore(await s.registrarAddUser("11", "11", "", 0, true, true, true, true)); print "\nAdded user 11"; | ||
| ignore(await s.registrarAddUser("12", "12", "", 0, true, true, true, true)); print "\nAdded user 12"; | ||
| ignore(await s.registrarAddUser("13", "13", "", 0, true, true, true, true)); print "\nAdded user 13"; | ||
| ignore(await s.registrarAddUser("14", "14", "", 0, true, true, true, true)); print "\nAdded user 14"; | ||
| ignore(await s.registrarAddUser("15", "15", "", 0, true, true, true, true)); print "\nAdded user 15"; | ||
| ignore(await s.registrarAddUser("16", "16", "", 0, true, true, true, true)); print "\nAdded user 16"; | ||
| ignore(await s.registrarAddUser("17", "17", "", 0, true, true, true, true)); print "\nAdded user 17"; | ||
| ignore(await s.registrarAddUser("18", "18", "", 0, true, true, true, true)); print "\nAdded user 18"; | ||
| ignore(await s.registrarAddUser("19", "19", "", 0, true, true, true, true)); print "\nAdded user 19"; | ||
| ignore(await s.registrarAddUser("20", "20", "", 0, true, true, true, true)); print "\nAdded user 20"; | ||
| ignore(await s.registrarAddUser("21", "21", "", 0, true, true, true, true)); print "\nAdded user 21"; | ||
| ignore(await s.registrarAddUser("22", "22", "", 0, true, true, true, true)); print "\nAdded user 22"; | ||
| ignore(await s.registrarAddUser("23", "23", "", 0, true, true, true, true)); print "\nAdded user 23"; | ||
| ignore(await s.registrarAddUser("24", "24", "", 0, true, true, true, true)); print "\nAdded user 24"; | ||
| ignore(await s.registrarAddUser("25", "25", "", 0, true, true, true, true)); print "\nAdded user 25"; | ||
| ignore(await s.registrarAddUser("26", "26", "", 0, true, true, true, true)); print "\nAdded user 26"; | ||
| ignore(await s.registrarAddUser("27", "27", "", 0, true, true, true, true)); print "\nAdded user 27"; | ||
| ignore(await s.registrarAddUser("28", "28", "", 0, true, true, true, true)); print "\nAdded user 28"; | ||
| ignore(await s.registrarAddUser("29", "29", "", 0, true, true, true, true)); print "\nAdded user 29"; | ||
|
|
||
| "Done"; | ||
| }; | ||
| }; |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Or maybe it's just this.