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 magic and upgraded SV handling for setsockopt()'s OPTVAL #18660

Merged
merged 1 commit into from
Jun 23, 2021

Conversation

tonycoz
Copy link
Contributor

@tonycoz tonycoz commented Mar 24, 2021

The code here checked SV flags before fetching magic, potentially
getting confused if magic fetched changed flags.

This also fixes handling for upgraded SVs, but I'm not sure that can
be tested sufficiently portably.

The code here checked SV flags before fetching magic, potentially
getting confused if magic fetched changed flags.

This also fixes handling for upgraded SVs, but I'm not sure that can
be tested sufficiently portably.
@FGasper
Copy link
Contributor

FGasper commented Apr 1, 2021

@tonycoz FWIW, here is my test for handling of setsockopt upgraded SV: https://github.com/FGasper/p5-Sys-Binmode/blob/master/t/net_setsockopt.t

As you mention, it’s a bit cross-platform-rickety. It seems to pass CPAN testers reliably, but of course there are many platforms that that doesn’t test.

@tonycoz tonycoz merged commit 2b96d01 into Perl:blead Jun 23, 2021
@tonycoz tonycoz deleted the 18642-setsockopt-magic branch June 23, 2021 00:33
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.

2 participants