Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

merge stable #3793

Merged
merged 6 commits into from
Apr 1, 2022
Merged

merge stable #3793

merged 6 commits into from
Apr 1, 2022

Conversation

MartinNowak
Copy link
Member

  • Add core.sys.openbsd.pwd module. Fix Issue 22908 - OpenBSD: Add getpwnam_shadow and getpwuid_shadow function prototypes
  • Fix 20778 - Ensure that _d_print_throwable prints the entire message
  • test/exceptions: Only print expected output if test fails
  • Fix 21086 - Correct link core.thread.context

ibara and others added 6 commits March 20, 2022 22:59
Fix Issue 22908 - OpenBSD: Add getpwnam_shadow and getpwuid_shadow function prototypes
The previous implementation simply forwarded the pointer + length to
`fprintf` and didn't check the return value. This caused the message to
be truncated for the following cases:

- it contains `\0` (the bug report)
- the length is greater than `int.max`

This commit changes the implementation s.t. it uses `fwrite` instead
which doesn't stop at `\0` and (theoretically) supports lengths up to
`size_t.max`
To reduce the noise and save some time
…ion-message

Fix 20778 - Ensure that _d_print_throwable prints the entire message
The file is named `context.d`, not `package.d`.
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @MartinNowak!

Bugzilla references

Auto-close Bugzilla Severity Description
20778 regression exception messages with nulls within are treated inconsistently
21086 normal Wrong source link for core.thread.context
22908 enhancement OpenBSD: Add getpwnam_shadow and getpwuid_shadow function prototypes

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + druntime#3793"

@dlang-bot dlang-bot added Bug Fix Include reference to corresponding bugzilla issue Enhancement New functionality labels Apr 1, 2022
@ibuclaw ibuclaw merged commit c52e28b into dlang:master Apr 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Fix Include reference to corresponding bugzilla issue Enhancement New functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants