about summary refs log tree commit diff stats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* omemo: use lower case to log infoMichael Vetter2019-08-231-1/+1
|
* Fix typo in OMEMO materials logMichael Vetter2019-08-231-1/+1
|
* Add comment about dead assignment in callback_add_timedMichael Vetter2019-08-231-0/+1
|
* Remove unused code in cmd_room() about win numMichael Vetter2019-08-231-6/+0
| | | | There is actually no reason to get the window number here.
* Remove duplicate code in roster_updateMichael Vetter2019-08-231-9/+1
| | | | | Part of what `roster_update()` does manually is actually done in `roster_change_name()`.
* Use fixed email instead of PACKAGE_BUGREPORTMichael Vetter2019-08-231-1/+2
|
* Don't render (all) delayed messages as MUC historyHolger Weiß2019-08-203-2/+20
| | | | | | | | Double-check that a <delay/> tag on a groupchat message was actually added by the MUC service (rather than the sending client) before assuming it was received from the MUC history. Fixes #1173.
* Merge pull request #1167 from profanity-im/feature/specify-config-fileMichael Vetter2019-08-025-10/+18
|\ | | | | Possibility to specify alternative config file
| * Possibility to specify alternative config fileMichael Vetter2019-08-025-10/+18
| | | | | | | | Introduce `profanity -c` to specify an alternative config file.
* | Improve sv_ev_roster_received() last activity checkMichael Vetter2019-08-021-11/+9
|/ | | | | We don't need to do all the timing stuff if last activity is disabled anyways.
* Merge pull request #1166 from profanity-im/fix/1165-subscribed-msgMichael Vetter2019-08-021-2/+6
|\ | | | | Don't print subscribed message if contact is already in roster
| * Don't print subscribed message if contact is already in rosterMichael Vetter2019-08-011-2/+6
| | | | | | | | | | | | | | | | | | | | | | This occured with a user running Cisco Jabber. It seems this server sends repeated presence subscribed stanzas. And although I find this strange according to RFC this seems to be ok. So let's filter them and only display in the console output and to the log. But don't open seperate windows. Fix https://github.com/profanity-im/profanity/issues/1165
* | Add 'save' command to save preferencesMichael Vetter2019-08-026-46/+34
|/ | | | | | | Most applications have an 'apply changes' button. This makes testing easier too. Implement https://github.com/profanity-im/profanity/issues/1164
* Merge pull request #1163 from paulfariello/hotfix/command-execMichael Vetter2019-07-301-0/+7
|\ | | | | Fix memleak in /cmd exec
| * Fix memleak in /cmd execPaul Fariello2019-07-301-0/+7
| |
* | Merge pull request #1161 from profanity-im/fix/omemo-leakMichael Vetter2019-07-302-2/+4
|\ \ | |/ |/| Fix memleaks in OMEMO
| * Fix memleak in save_identity()Michael Vetter2019-07-231-1/+1
| | | | | | | | I don't see a reason for strdupping here.
| * Fix potential leak in omemo_untrust()Michael Vetter2019-07-231-0/+2
| |
| * Dont use not needed strdup() in save_identity()Michael Vetter2019-07-231-1/+1
| | | | | | | | I don't see a reason for strdupping here.
* | Fix command form submitPaul Fariello2019-07-301-1/+1
|/ | | | | Command form userdata were freed by iq_id_handler. We should now free the command ourself.
* Make sure result is always set for otr_get_policy()Michael Vetter2019-07-231-1/+1
|
* Merge pull request #1160 from profanity-im/fix/1159-groupaddsegfaultMichael Vetter2019-07-221-4/+0
|\ | | | | Fix segfault in group add/remove command
| * Fix segfault in group add/remove commandMichael Vetter2019-07-221-4/+0
| | | | | | | | | | Also regarding destructor. Fix https://github.com/profanity-im/profanity/issues/1159
* | Fix memleak in roster_change_name()Michael Vetter2019-07-221-2/+2
| |
* | Fix 3 leaks in cmd_funcsMichael Vetter2019-07-221-0/+4
| |
* | Fix several memleaks im cmd_ac.cMichael Vetter2019-07-221-0/+6
| | | | | | | | Exiting without freeing in some cases.
* | Fix memleak in roster_removeMichael Vetter2019-07-221-1/+1
| | | | | | | | strdup() is not needed here but will actually lead to a memleak.
* | Fix memory leak in roster_update()Michael Vetter2019-07-221-1/+2
| | | | | | | | current_name should not be const and should be freed.
* | Remove dead assignmentsMichael Vetter2019-07-222-2/+2
| |
* | Remove unused assignmentsMichael Vetter2019-07-222-2/+1
| |
* | Fix double initialization of loop iteratorMichael Vetter2019-07-222-3/+0
| |
* | Guard against arg being NULL in cmd_funcsMichael Vetter2019-07-221-0/+20
| | | | | | | | | | | | | | | | This should actually never happen because we have the mechanism that checks the commands. But let's do it in case we break something in that mechanism and to make clang happy. Fixes clangs: 'Argument with 'nonnull' attribute passed null'
* | Reduce scope of num in ui_print_system_msg_from_recipient()Michael Vetter2019-07-221-3/+1
| |
* | Merge pull request #1154 from optmzr/issue-1099Michael Vetter2019-07-203-47/+84
|\ \ | |/ |/| Always check for directory changes with sendfile auto completion
| * Always check for directory changes with sendfile auto completionWilliam Wennerström2019-07-203-47/+84
| | | | | | | | | | | | | | | | | | | | Instead of only checking for files when 'last_directory' has changed, do it every time. Add autocomplete_update function that updates the items while retaining last_found and search_str. Fixes #1099
* | Fix segfault in block commandMichael Vetter2019-07-191-6/+0
| | | | | | | | | | | | Another case of double free() due to new destructor. Fixes https://github.com/profanity-im/profanity/issues/1156
* | Fixup for last commitMichael Vetter2019-07-121-1/+0
| |
* | Fix segfault in iq_{submit,cancel}_command_configMichael Vetter2019-07-121-6/+0
| | | | | | | | Taken care of by the destructor.
* | Fix segfault in /cmd execMichael Vetter2019-07-121-0/+5
| | | | | | | | Test for correct number of arguments before using argument.
* | Merge pull request #1150 from paulfariello/hotfix/omemo-memleaksMichael Vetter2019-07-115-5/+36
|\ \ | | | | | | | | | | | | Hotfix/omemo memleaks Regards https://github.com/profanity-im/profanity/issues/1131
| * | Dirty fix libgcrypt memleakPaul Fariello2019-07-111-0/+5
| | |
| * | Enable secure memory in gcrypt initialisationPaul Fariello2019-07-111-0/+6
| | |
| * | Fix various OMEMO memleaksPaul Fariello2019-07-104-5/+25
| | |
* | | Fix some more potential double freesMichael Vetter2019-07-111-34/+0
|/ / | | | | | | Regards https://github.com/profanity-im/profanity/issues/1148
* | Fix jump depending on uninit. value in statusbarMichael Vetter2019-07-101-1/+1
| |
* | Reduce codelines in form.cMichael Vetter2019-07-101-16/+2
| | | | | | | | | | Let's use calloc instead of malloc and then setting almost all fields to NULL.
* | Fix double free in roster_process_pending_presenceMichael Vetter2019-07-101-1/+0
| | | | | | | | This is taken care of now in the destructor _pendingPresence_free().
* | Add destructor for roster_pending_presenceMichael Vetter2019-07-091-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix: ``` ==18682== 408 bytes in 17 blocks are definitely lost in loss record 3,279 of 3,632 ==18682== at 0x483677F: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==18682== by 0x42F602: roster_update_presence (roster_list.c:129) ==18682== by 0x448AA3: sv_ev_contact_online (server_events.c:906) ==18682== by 0x43D2BA: _available_handler (presence.c:674) ==18682== by 0x43C81B: _presence_handler (presence.c:398) ==18682== by 0x5AF118E: handler_fire_stanza (handler.c:124) ==18682== by 0x5AEDBDA: _handle_stream_stanza (conn.c:1253) ==18682== by 0x5AFA43E: _end_element (parser_expat.c:190) ==18682== by 0x6818AA4: doContent (xmlparse.c:2977) ==18682== by 0x681A3AB: contentProcessor (xmlparse.c:2552) ==18682== by 0x681D7EB: XML_ParseBuffer (xmlparse.c:1988) ==18682== by 0x681D7EB: XML_ParseBuffer (xmlparse.c:1957) ==18682== by 0x5AF0A63: xmpp_run_once (event.c:255) ==18682== by 0x432E5D: connection_check_events (connection.c:104) ==18682== by 0x4323B3: session_process_events (session.c:255) ==18682== by 0x42C097: prof_run (profanity.c:128) ==18682== by 0x4B25B9: main (main.c:172) ```
* | Fix double free in room id handlerMichael Vetter2019-07-091-6/+1
| | | | | | | | | | Free is done in destructor now. Regards https://github.com/profanity-im/profanity/issues/1148
* | Fix double free in omemo_start_device_session_handle_bundle()Michael Vetter2019-07-081-0/+1
| | | | | | | | | | | | | | | | | | omemo_key_free() was called to free the key. It free the key->data too. But in same cases this was not set yet. So we need to set the data to NULL (or use calloc) at initialization so that omemo_key_free() only frees it if it was actually allocated. Regards https://github.com/profanity-im/profanity/issues/1148
003tangle.test.cc?h=main&id=d7297b82c57b7920d6cff9c22e87afe77451a786'>d7297b82 ^
51530916 ^



55f7befe ^

c08e91ff ^
51530916 ^





55f7befe ^

c08e91ff ^
51530916 ^




55f7befe ^




c08e91ff ^
51530916 ^






55f7befe ^




c08e91ff ^
51530916 ^
d7297b82 ^


51530916 ^



55f7befe ^






c08e91ff ^
51530916 ^
d7297b82 ^


51530916 ^




55f7befe ^







c08e91ff ^
51530916 ^
d7297b82 ^



51530916 ^


ad796a56 ^
55f7befe ^






c08e91ff ^
ad796a56 ^
d7297b82 ^





ad796a56 ^

9429b278 ^
55f7befe ^






c08e91ff ^
9429b278 ^
d7297b82 ^





9429b278 ^

51530916 ^

53fbba4f ^
51530916 ^

55f7befe ^



c08e91ff ^
51530916 ^
029c04e2 ^
a18f5328 ^


05db3f68 ^



c08e91ff ^
51530916 ^


b35ac82d ^
55f7befe ^




b35ac82d ^

029c04e2 ^
a18f5328 ^


05db3f68 ^



b35ac82d ^



c08e91ff ^
55f7befe ^




c08e91ff ^




51530916 ^
55f7befe ^



c08e91ff ^
51530916 ^
029c04e2 ^
a18f5328 ^


05db3f68 ^


c08e91ff ^
51530916 ^





97f3bbac ^
55f7befe ^




c08e91ff ^
97f3bbac ^
029c04e2 ^
c08e91ff ^
a18f5328 ^


05db3f68 ^



1326a4ec ^



cb159b8c ^
55f7befe ^




cb159b8c ^


a18f5328 ^


05db3f68 ^



cb159b8c ^




b6e33d02 ^
55f7befe ^


b6e33d02 ^


a18f5328 ^


b6e33d02 ^




51530916 ^
55f7befe ^



c08e91ff ^
51530916 ^
029c04e2 ^
a18f5328 ^


05db3f68 ^



c08e91ff ^
51530916 ^



55f7befe ^



c08e91ff ^
51530916 ^
029c04e2 ^
a18f5328 ^


05db3f68 ^



c08e91ff ^
51530916 ^



55f7befe ^




c08e91ff ^
51530916 ^
029c04e2 ^
a18f5328 ^



05db3f68 ^



c08e91ff ^
51530916 ^



55f7befe ^





c08e91ff ^
51530916 ^
029c04e2 ^
a18f5328 ^


c08e91ff ^
a18f5328 ^


05db3f68 ^



c08e91ff ^
51530916 ^



55f7befe ^




c08e91ff ^
51530916 ^
05db3f68 ^

029c04e2 ^
a18f5328 ^



05db3f68 ^


c08e91ff ^

51530916 ^



55f7befe ^




c08e91ff ^
51530916 ^
029c04e2 ^
a18f5328 ^



c08e91ff ^


51530916 ^


c51043ab ^
55f7befe ^



c51043ab ^

029c04e2 ^
a18f5328 ^



7163e18a ^
c51043ab ^



4f5cf668 ^
55f7befe ^













4f5cf668 ^

029c04e2 ^
a18f5328 ^





05db3f68 ^



4f5cf668 ^
7163e18a ^
4f5cf668 ^



00c2ca08 ^






















53fbba4f ^
51530916 ^



































1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722