Prevent crash with malformed JID in /sub command #23

Manually merged
jabber.developer merged 2 commits from fix/caps-crash into master 2025-09-01 22:32:20 +00:00

See commit messages.

  • (No need to) Run valgrind when using my new feature
  • Add unit tests

How to test the functionality

  • Try /sub request @example.com

Fixes #22

See commit messages. <!-- For completed items, change [ ] to [x]. --> - [x] (No need to) Run valgrind when using my new feature - [x] Add unit tests ### How to test the functionality - Try `/sub request @example.com` Fixes #22
jabber.developer added 2 commits 2025-09-01 21:03:46 +00:00
Added null check for jidp in cmd_sub to handle jid_create returning NULL.

Crash occurred when processing malformed JID inputs like @example.com.

Ensures robust handling of invalid JIDs.

Fixes #23
Fix(ui.h): cons_show_qrcode declaration. Minor change
Some checks failed
CI / Check spelling (pull_request) Successful in 17s
CI / Check coding style (pull_request) Successful in 32s
CI / Linux (debian) (pull_request) Failing after 1m19s
CI / Linux (ubuntu) (pull_request) Successful in 10m15s
CI / Linux (arch) (pull_request) Successful in 12m3s
4a5dd4dd69
Prior to the change declaration did not include parameters, leading to errors in static analyzers and potential issues with compilation.
admin force-pushed fix/caps-crash from 4a5dd4dd69 to cf7b34acb5 2025-09-01 21:05:14 +00:00 Compare
admin force-pushed fix/caps-crash from cf7b34acb5 to 741dc4c275 2025-09-01 21:29:35 +00:00 Compare
jabber.developer added the
Kind/Bug
label 2025-09-01 22:25:49 +00:00
jabber.developer changed title from fix(cmd_sub): Prevent crash with malformed JID in /sub command to Prevent crash with malformed JID in /sub command 2025-09-01 22:26:04 +00:00
jabber.developer manually merged commit 741dc4c275 into master 2025-09-01 22:32:20 +00:00
Sign in to join this conversation.
No description provided.