aboutsummaryrefslogtreecommitdiffstats
path: root/src/omemo
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2021-06-30 12:27:11 +0200
committerMichael Vetter <jubalh@iodoru.org>2021-06-30 12:27:11 +0200
commita46c4443e352d9eada02670125ea5f028559be21 (patch)
tree08fb65f25637802d222c9812875c68ca285bdbf0 /src/omemo
parentf30a9e125649b4a7623845d520bdb40ef39dfd8f (diff)
downloadprofani-tty-a46c4443e352d9eada02670125ea5f028559be21.tar.gz
Fix segfault when aesgcm url isn't the expected size
Fixes the bug mentioned in https://github.com/profanity-im/profanity/issues/1478#issuecomment-794161606 The rest of https://github.com/profanity-im/profanity/issues/1478 I can't reproduce. Seems to work fine.
Diffstat (limited to 'src/omemo')
-rw-r--r--src/omemo/omemo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/omemo/omemo.c b/src/omemo/omemo.c
index b0d2d8aa..560a3473 100644
--- a/src/omemo/omemo.c
+++ b/src/omemo/omemo.c
@@ -1862,6 +1862,7 @@ omemo_parse_aesgcm_url(const char* aesgcm_url,
}
if (strlen(*fragment) != AESGCM_URL_NONCE_LEN + AESGCM_URL_KEY_LEN) {
+ ret = 1;
goto out;
}