summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml2
-rw-r--r--auto_tests/file_saving_test.c5
-rw-r--r--toxav/BUILD.bazel2
3 files changed, 4 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index 1c45cab2..23defef5 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -46,8 +46,6 @@ matrix:
46 - libcv-dev # For av_test. 46 - libcv-dev # For av_test.
47 - libhighgui-dev # For av_test. 47 - libhighgui-dev # For av_test.
48 - libopencv-contrib-dev # For av_test. 48 - libopencv-contrib-dev # For av_test.
49 - libsndfile1-dev # For av_test.
50 - portaudio19-dev # For av_test.
51 before_install: 49 before_install:
52 # Clear bazel installation. 50 # Clear bazel installation.
53 - rm -rf $HOME/.cache/bazel/_bazel_$USER/install 51 - rm -rf $HOME/.cache/bazel/_bazel_$USER/install
diff --git a/auto_tests/file_saving_test.c b/auto_tests/file_saving_test.c
index f1d1c9e4..b86eb6c3 100644
--- a/auto_tests/file_saving_test.c
+++ b/auto_tests/file_saving_test.c
@@ -27,6 +27,7 @@
27#include "config.h" 27#include "config.h"
28#endif 28#endif
29 29
30#include <limits.h>
30#include <stdio.h> 31#include <stdio.h>
31#include <stdlib.h> 32#include <stdlib.h>
32#include <string.h> 33#include <string.h>
@@ -82,12 +83,12 @@ static void load_data_decrypted(void)
82 int64_t size = ftell(f); 83 int64_t size = ftell(f);
83 fseek(f, 0, SEEK_SET); 84 fseek(f, 0, SEEK_SET);
84 85
85 ck_assert_msg(0 <= size && size <= SIZE_MAX, "file size out of range"); 86 ck_assert_msg(0 <= size && size <= UINT_MAX, "file size out of range");
86 87
87 uint8_t *cipher = (uint8_t *)malloc(size); 88 uint8_t *cipher = (uint8_t *)malloc(size);
88 uint8_t *clear = (uint8_t *)malloc(size - TOX_PASS_ENCRYPTION_EXTRA_LENGTH); 89 uint8_t *clear = (uint8_t *)malloc(size - TOX_PASS_ENCRYPTION_EXTRA_LENGTH);
89 size_t read_value = fread(cipher, sizeof(*cipher), size, f); 90 size_t read_value = fread(cipher, sizeof(*cipher), size, f);
90 printf("Read read_vavue = %u of %lu\n", (unsigned)read_value, (unsigned long)size); 91 printf("Read read_value = %u of %u\n", (unsigned)read_value, (unsigned)size);
91 92
92 TOX_ERR_DECRYPTION derr; 93 TOX_ERR_DECRYPTION derr;
93 94
diff --git a/toxav/BUILD.bazel b/toxav/BUILD.bazel
index 151ac48e..03130587 100644
--- a/toxav/BUILD.bazel
+++ b/toxav/BUILD.bazel
@@ -99,7 +99,7 @@ cc_library(
99 srcs = ["groupav.c"], 99 srcs = ["groupav.c"],
100 hdrs = ["groupav.h"], 100 hdrs = ["groupav.h"],
101 deps = [ 101 deps = [
102 "//c-toxcore/toxcore:toxcore", 102 "//c-toxcore/toxcore",
103 "@opus", 103 "@opus",
104 ], 104 ],
105) 105)