Prevent crash in /caps with malformed JID input #21

Manually merged
jabber.developer merged 1 commits from fix/caps-crash into master 2025-09-01 19:48:28 +00:00
  • I ran valgrind when using my new feature

How to test the functionality

  • Try /caps @example.com

Fixes #20

<!-- For completed items, change [ ] to [x]. --> - [x] I ran valgrind when using my new feature ### How to test the functionality - Try `/caps @example.com` Fixes #20
jabber.developer added 1 commit 2025-09-01 19:29:13 +00:00
fix(cmd_caps): Prevent crash in /caps with malformed JID input
All checks were successful
CI / Check spelling (pull_request) Successful in 15s
CI / Check coding style (pull_request) Successful in 29s
CI / Linux (debian) (pull_request) Successful in 9m54s
CI / Linux (ubuntu) (pull_request) Successful in 10m15s
CI / Linux (arch) (pull_request) Successful in 11m51s
CI / Check spelling (push) Successful in 18s
CI / Check coding style (push) Successful in 31s
CI / Linux (debian) (push) Successful in 10m35s
CI / Linux (ubuntu) (push) Successful in 11m0s
CI / Linux (arch) (push) Successful in 13m26s
51d2355d97
- Added null check for `jid` in `cmd_caps` to handle `jid_create` returning NULL.
- Crash occurred when processing malformed inputs like `@example.com` in `/caps`.
- Ensures robust handling of invalid JID strings in `WIN_CHAT` and `WIN_CONSOLE` cases.

Fixes #20
jabber.developer changed title from fix(cmd_caps): Prevent crash in /caps with malformed JID input to Prevent crash in /caps with malformed JID input 2025-09-01 19:29:54 +00:00
jabber.developer manually merged commit 51d2355d97 into master 2025-09-01 19:48:28 +00:00
Sign in to join this conversation.
No description provided.