forked from pool/libotr
- Add libotr-test-underrun.patch: fix intermittent buffer underrun in the regression test client (bsc#1091664). OBS-URL: https://build.opensuse.org/request/show/607637 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libotr?expand=0&rev=21
13 lines
502 B
Diff
13 lines
502 B
Diff
diff -urp libotr-4.1.1.orig/tests/regression/client/client.c libotr-4.1.1/tests/regression/client/client.c
|
|
--- libotr-4.1.1.orig/tests/regression/client/client.c 2015-12-25 11:39:45.000000000 -0600
|
|
+++ libotr-4.1.1/tests/regression/client/client.c 2018-05-15 10:21:41.509037880 -0500
|
|
@@ -497,7 +497,7 @@ static int send_otr_msg(int sock, const
|
|
}
|
|
|
|
if (!message) {
|
|
- size_t len = rand() % 600;
|
|
+ size_t len = rand() % 600 + 1;
|
|
char *msg = zmalloc(len);
|
|
if (!msg) {
|
|
perror("random msg");
|