Skip to content

Guard against NULL from pretty_mask#15

Open
mannfredcom wants to merge 23 commits intomainfrom
import/null-guard-pretty-mask-fix
Open

Guard against NULL from pretty_mask#15
mannfredcom wants to merge 23 commits intomainfrom
import/null-guard-pretty-mask-fix

Conversation

@mannfredcom
Copy link
Owner

pretty_mask() can return NULL when the static mask buffer lacks space.
chm_ban() immediately calls strlen(mask), which can dereference NULL.
Assuming to only be an issue if MAXMODEPARAMS is big (not the case by default).

mannfredcom and others added 23 commits January 20, 2026 00:13
Do not permit newconf.c to set the runtime nicklen to longer than NICKLEN - 1
Define NICKLEN in ircd_defs.h as 31 to include the "0".
Validate temporary D-lines before adding
…ing-fix

Guard ipline removal for null pnode.
mannfredcom pushed a commit that referenced this pull request Feb 6, 2026
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