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 miscompilation when module contains multiple named funs #485

Closed
wants to merge 1 commit into from

Conversation

nox
Copy link
Contributor

@nox nox commented Sep 27, 2014

A module containing two named funs bearing the same name and arity could be miscompiled.

@sfwc

A module containing two named funs bearing the same name and arity could be
miscompiled.

Reported-by: Sam Chapin
@OTP-Maintainer
Copy link

Patch has passed first testings and has been assigned to be reviewed


I am a script, I am not human


@bjorng
Copy link
Contributor

bjorng commented Oct 27, 2014

The correction itself looks good.

The test case, however, does not fail when I revert the correction.

I have corrected the test case by adding a line to the eep37_dup/1 function:

eep37_dup(Config) when is_list(Config) ->
dup1 = (dup1())(),
dup2 = (dup2())(),
ok.

We will test the branch a few days in our daily builds.

@nox
Copy link
Contributor Author

nox commented Oct 27, 2014

Oh, sorry, I was pretty sure it did. Thanks for correcting it yourself.

@bjorng
Copy link
Contributor

bjorng commented Nov 28, 2014

Merged.

@bjorng bjorng closed this Nov 28, 2014
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