Skip to content

CFError: do not test CFErrorCreate with a NULL domain - #78

Merged
fredkiefer merged 1 commit into
gnustep:masterfrom
DTW-Thalion:tests/cferror-create-apple-cf
Aug 31, 2026
Merged

fredkiefer merged 1 commit into
gnustep:masterfrom
DTW-Thalion:tests/cferror-create-apple-cf

Conversation

@DTW-Thalion

Copy link
Copy Markdown
Contributor

CFErrorCreate requires a non-NULL domain. On Apple CoreFoundation, passing NULL
dereferences the domain and crashes, so the assertion that it returns NULL only
holds for corebase's defensive handling and cannot run on the reference
implementation. Removing the case lets the suite pass on CoreFoundation; the rest
of the file is unaffected.

Apple CoreFoundation dereferences the domain, so passing NULL crashes there
rather than returning NULL. Only corebase handles it defensively, so the case
cannot run on the reference implementation.
@DTW-Thalion
DTW-Thalion force-pushed the tests/cferror-create-apple-cf branch from dc4cfd5 to 4d7ecb3 Compare July 24, 2026 15:11
@DTW-Thalion DTW-Thalion reopened this Jul 24, 2026
@DTW-Thalion DTW-Thalion reopened this Jul 27, 2026
@fredkiefer
fredkiefer merged commit 9eeb4f1 into gnustep:master Aug 31, 2026
3 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants