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

Minor changes of pull 1281 #1282

Merged
merged 2 commits into from Sep 26, 2014
Merged

Conversation

madrang
Copy link
Contributor

@madrang madrang commented Sep 14, 2014

See #1281

@monoadmin
Copy link

Hello! I'm the build bot for the Mono project. I need approval from a Mono team member to build this pull request. A team member should reply with "approve" to approve a build of this pull request, "whitelist" to whitelist this and all future pull requests from this contributor, or "build" to explicitly request a build, even if one has already been done. Contributors can ignore this message.

if (transform == null)
throw new ArgumentNullException ("transform");
if (blockSize <= 0)
throw new ArgumentOutOfRangeException ("blockSize");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Those helped me alot find a bug with HashAlgorithm that was using a Null Key, it was passing it to a BlockProcessor and never noticed it...

spouliot added a commit that referenced this pull request Sep 26, 2014
Add missing argument validations and set disposed flag to true once Dispose is called
@spouliot spouliot merged commit f234e42 into mono:master Sep 26, 2014
@spouliot
Copy link
Contributor

spouliot commented Oct 2, 2014

Reverted. The changes makes test fails and our test must behave identically to what MS .NET does on Windows. IOW if MS throws an NRE we will throw an NRE, not an ANE.

@monoadmin
Copy link

Hello! I'm the build bot for the Mono project. I need approval from a Mono team member to build this pull request. A team member should reply with "approve" to approve a build of this pull request, "whitelist" to whitelist this and all future pull requests from this contributor, or "build" to explicitly request a build, even if one has already been done. Contributors can ignore this message.

@madrang
Copy link
Contributor Author

madrang commented Oct 4, 2014

My fault, i added the change by mistake to 15659482046963f2731be4e29e50784ddc661939
Instead of having it in its own commit... So when i made this PR i forgot about it.

Also, i can't edit this commit since it is marked as merged.

@madrang
Copy link
Contributor Author

madrang commented Oct 4, 2014

I made a PR only for the CryptoTools.cs BlockProcessor #1325

HMAC.cs Dispose(bool) in master still have the line _disposed = true;

The check in ComputeHash (Stream inputStream) was not really needed, trying to use a null stream will still result in a NRE anyway.

I rebased #1281 so it will not conflic anymore after the revert and removed the conflicting lines from the commit.

            if (inputStream == null)
                throw new NullReferenceException ("inputStream");

Not sure if i should add them again in their own commit or PR ??

picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Add missing argument validations and set disposed flag to true once Dispose is called

Commit migrated from mono/mono@f234e42
AlexKnauth pushed a commit to AlexKnauth/mono that referenced this pull request Nov 2, 2023
…-windows-abort

Fix abort behavior on Windows
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.

None yet

4 participants