Bug 2072329
| Summary: | mbsrtowcs and mbsnrtowcs fortification should be skipped for NULL __dst [rhl-8.7.0] | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Siddhesh Poyarekar <sipoyare> |
| Component: | glibc | Assignee: | Siddhesh Poyarekar <sipoyare> |
| Status: | CLOSED ERRATA | QA Contact: | Martin Coufal <mcoufal> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.7 | CC: | ashankar, codonell, dj, fweimer, mcoufal, mnewsome, pfrankli, sipoyare |
| Target Milestone: | rc | Keywords: | Regression, Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | glibc-2.28-199.el8 | Doc Type: | No Doc Update |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-11-08 10:43:12 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Siddhesh Poyarekar
2022-04-06 02:45:54 UTC
When fixing mbstowcs we had the same issue.
I noted this in commit 61af4bbb2ae5a4eefc4c4243135747bbdb0f0684
The mbsrtowcs and mbsnrtowcs behave similarly, and mbsrtowcs is
documented as doing this in C11, even if the standard doesn't come out
and call out this specific use case. We add one note to each of
mbsrtowcs and mbsnrtowcs to call out that they support a null pointer
for the destination.
... but I didn't extend the test case to cover these, sorry!
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (glibc bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:7684 |