1. 29 Nov, 2014 1 commit
    • David Goulet's avatar
      Test: Add new test-suite in tests/ · 7b860e03
      David Goulet authored
      This is a completely new test suite that adds unit and regression tests.
      Still not everything is covered but it's at 76.3% line coverage and
      87.5% function coverage. See the current status here.
      
      	https://coverage.otr.im/
      
      
      
      In order to run the tests, simply type "make check" from the top
      directory of the repository.
      
      The test suite uses libtap and adds both a shell and C library located
      in tests/utils/tap.
      
      Note that this test suite is not related at all to the tests located in
      the directory test_suite. Future work should be done to either merge
      them or remove the old one.
      
      Tested with libgcrypt 1.5.4 and 1.6.2.
      Signed-off-by: jvoisin's avatarJulien Voisin <julien.voisin@dustri.org>
      Signed-off-by: default avatarDavid Goulet <dgoulet@ev0ke.net>
      Signed-off-by: default avatarIan Goldberg <iang@cs.uwaterloo.ca>
      
      Fixes #8
      7b860e03
  2. 14 Nov, 2014 1 commit
    • Ian Goldberg's avatar
      Guard against a potential integer overflow in future code paths · 187a09ac
      Ian Goldberg authored
      * b64.c (otrl_base64_otr_encode): In case some future code path
      tries to call otrl_base64_otr_encode with a buffer more than
      3/4 the size of all addressable memory, return NULL rather than
      causing an integer overflow and a heap overrun.  Thanks to
      David Remahl <david@remahl.se> for the report.
      
      * proto.c (otrl_proto_create_data): Tiny refactor to call
      otrl_base64_otr_encode instead of duplicating the code here.
      
      Fixes #64
      187a09ac
  3. 21 Oct, 2014 2 commits
  4. 19 Oct, 2014 1 commit
  5. 18 Oct, 2014 7 commits
  6. 14 Oct, 2014 4 commits
  7. 28 Jul, 2014 3 commits
  8. 03 Jun, 2014 5 commits
  9. 15 Feb, 2014 1 commit
  10. 13 Oct, 2013 1 commit
  11. 03 Oct, 2013 1 commit
  12. 21 Aug, 2013 2 commits
  13. 08 Aug, 2013 1 commit
  14. 29 Jul, 2013 1 commit
  15. 17 Jul, 2013 1 commit
  16. 09 May, 2013 2 commits
  17. 09 Sep, 2012 1 commit
  18. 31 Aug, 2012 1 commit
  19. 30 Aug, 2012 1 commit
  20. 28 Aug, 2012 1 commit
    • Ian Goldberg's avatar
      Don't have otrl_init call exit(1) · ec38ddb5
      Ian Goldberg authored
      Don't have otrl_init call exit(1) if the application's requested version
      number differs from libotr's.  Rather, return a non-zero error code, and
      have the application clean up gracefully.  The OTRL_INIT macro now
      checks the error code and does an exit(1) as the default behaviour, but
      the application can do what it likes.
      ec38ddb5
  21. 27 Aug, 2012 1 commit
  22. 26 Aug, 2012 1 commit