Skip to content

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

Open
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:tests/cferror-create-apple-cf
Open

CFError: do not test CFErrorCreate with a NULL domain#78
DTW-Thalion wants to merge 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
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.

1 participant