about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
...
* Get rid of asprintf and _GNU_SOURCE defineMichael Vetter2021-03-3012-104/+97
| | | | | | | _GNU_SOURCE was even in some files where it was not needed at all (http*). Let's replace asprintf() with g_strdup_printf().
* Fix segfault in cmd_autoaway()Michael Vetter2021-03-291-9/+12
| | | | | | | | | Two mistakes were here: * `/autoaway time away` without a time argument segfaulted * `/autoaway message away` without a mesage set to (null). We have `/autoaway message off to set it off. Also use g_strcmp0() instead of strcmp().
* Merge pull request #1514 from profanity-im/fix/1512-rpiMichael Vetter2021-03-2644-0/+88
|\ | | | | Include config.h in omemo files
| * Add config.h in files were it was missingMichael Vetter2021-03-2642-0/+84
| | | | | | | | Related to https://github.com/profanity-im/profanity/issues/1512
| * Include config.h in omemo filesMichael Vetter2021-03-262-0/+4
|/ | | | | | | | | So that off_t is defined in all files (so far http_upload.c and http_download.c too) the same way. Fix https://github.com/profanity-im/profanity/issues/1512 Thanks @pasis for finding the solution!
* iq: use define for 'cancel'Michael Vetter2021-03-261-2/+2
|
* message: parse stanzaid in MUC caseMichael Vetter2021-03-251-1/+9
| | | | | | | | | | | | | | | | | | There was a todo for this in message.c which got forgotten. This was most likely also the reason why there were NULL entries for this in the DB which DebXWoody mentioned in the MUC. Thus comparison was with NULL and no new entries were added to the database. Edit: After checking pull requests I see Stefans draft PR: https://github.com/profanity-im/profanity/pull/1505 So let's add him as co-author. Co-authored-by: Stefan Kropp <stefan@debxwoody.de>
* Merge pull request #1513 from profanity-im/fix-possible-segfault1Michael Vetter2021-03-257-204/+298
|\ | | | | Fix potential problems caused by unexpected stanzas
| * ox: fix memleak in ox_announce_public_keyMichael Vetter2021-03-251-1/+3
| |
| * message: make _handle_error saferMichael Vetter2021-03-251-2/+4
| |
| * event: make log_database_get_previous_chat saferMichael Vetter2021-03-251-2/+4
| |
| * database: make log_database_get_previous_chat saferMichael Vetter2021-03-251-0/+2
| |
| * database: simplify _log_database_add_outgoingMichael Vetter2021-03-251-2/+1
| |
| * database: simplify log_database_add_incomingMichael Vetter2021-03-251-2/+1
| |
| * avatar: make _avatar_request_item_result_handler saferMichael Vetter2021-03-251-0/+4
| |
| * avatar: make _avatar_metadata_handler saferMichael Vetter2021-03-251-11/+20
| |
| * ox: make _ox_public_key_result saferMichael Vetter2021-03-251-5/+15
| |
| * ox: guard printing of fingerprintMichael Vetter2021-03-251-1/+3
| |
| * ox: improve error log in _ox_metadata_resultMichael Vetter2021-03-251-1/+1
| |
| * ox: add logging prefixMichael Vetter2021-03-251-15/+15
| |
| * stanza: guard mallocsMichael Vetter2021-03-251-70/+88
| | | | | | | | | | If this happens we have more serious problems :-) But anyways..
| * stanza: simplify stanza_get_muc_destroy_alternative_roomMichael Vetter2021-03-251-4/+1
| |
| * stanza: replae strcmp with g_strcmp0Michael Vetter2021-03-251-17/+17
| | | | | | | | since its NULL safe
| * message: simplify _handle_headlineMichael Vetter2021-03-251-4/+2
| |
| * message: make _receipt_request_handler saferMichael Vetter2021-03-251-1/+1
| |
| * message: make _handle_receipt_received saferMichael Vetter2021-03-251-1/+5
| |
| * message: make _handle_groupchat saferMichael Vetter2021-03-251-0/+6
| |
| * message: simplify _handle_conferenceMichael Vetter2021-03-251-7/+5
| |
| * message: make _handle_form saferMichael Vetter2021-03-251-0/+3
| |
| * message: make _message_handler saferMichael Vetter2021-03-251-7/+9
| |
| * mesage: make _handle_ox_chat saferMichael Vetter2021-03-251-11/+27
| | | | | | | | And on the way fix a memleak
| * message: make _handle_chat saferMichael Vetter2021-03-251-0/+3
| |
| * message: make _handle_muc_private_message saferMichael Vetter2021-03-251-0/+7
| |
| * message: fix potential segfault in _receipt_request_handlerMichael Vetter2021-03-251-3/+7
| |
| * message: safeguard _handle_receipt_receivedMichael Vetter2021-03-251-15/+17
| | | | | | | | | | | | This shouldnt be necessary since we check for the receipt outside alreayd. Let's be on the safe side though in case code gets changed later.
| * message: reorder _handle_groupchatMichael Vetter2021-03-251-12/+9
| |
| * message: fix possible segfault in _handle_conferenceMichael Vetter2021-03-251-19/+23
| |
| * message: fix possible segfault in _handle_muc_userMichael Vetter2021-03-251-0/+4
|/
* message: fix possible segfault in _message_handlerMichael Vetter2021-03-251-3/+3
|
* Merge pull request #1510 from profanity-im/fix/1210-muc-registerMichael Vetter2021-03-258-6/+164
|\ | | | | Register nickname with MUC
| * Add support to register with a roomMichael Vetter2021-03-258-6/+164
|/ | | | | | | | | | `/affiliation register` can now be used to register a nickname with a MUC. Tested with a server without forms. Couldn't find a server which supports forms yet. Implements https://github.com/profanity-im/profanity/issues/1210
* debug build: build without -fsanitize=addressMichael Vetter2021-03-241-1/+1
| | | | | | | | | | | | Sorry :-) Seems then we can't use valgrind since that does its own ASAN things. So maybe developers needs to set some flags by themselves to find these memory issues. https://fuzzing-project.org/tutorial-cflags.html might be of help. Regards: https://github.com/profanity-im/profanity/issues/1512
* debug build: build with -fsanitize=addressMichael Vetter2021-03-241-1/+1
| | | | | | | | Let's compile with this flag to detect memory erros in the debug build. See https://clang.llvm.org/docs/AddressSanitizer.html Regards: https://github.com/profanity-im/profanity/issues/1512
* Merge pull request #1511 from mwuttke97/doc_bookmark_joinMichael Vetter2021-03-241-6/+13
|\ | | | | Command doc: Improve description and examples of `/bookmark` and `/join`
| * Command doc: Improve description and examples of `/bookmark` and `/join`Maximilian Wuttke2021-03-211-6/+13
| |
* | Merge pull request #1508 from profanity-im/fix/1507-voice-acceptMichael Vetter2021-03-174-2/+53
|\ \ | | | | | | Support to approve MUC voice requests
| * | form.c: fix memleak in form_tag_existsMichael Vetter2021-03-171-0/+1
| | |
| * | Add support to approve MUC voice requestsMichael Vetter2021-03-173-2/+52
|/ / | | | | | | | | | | A form will open. One can then use `/field4 on` `/form submit`. Implements https://github.com/profanity-im/profanity/issues/1507
* | profanity.c: move var into functionMichael Vetter2021-03-161-1/+2
| |
* | Merge pull request #1504 from xenrox/request-voiceMichael Vetter2021-03-168-11/+107
|\ \ | |/ |/| MUC: Add voice request