antma
364fe4ebe4
add check that BN_is_prime return value is not negative
...
fix memory leak (BN_clear doesn't release allocated memory)
2014-01-21 18:24:40 +04:00
antma
32d7286640
Merge remote-tracking branch 'upstream/master'
2014-01-21 17:46:41 +04:00
vysheng
ea2dbbdf61
Merge pull request #39 from antma/master
...
improve portability by removing rdtsc calls
2014-01-21 03:35:12 -08:00
antma
49618453fa
Merge remote-tracking branch 'upstream/master'
2014-01-20 12:57:20 +04:00
vysheng
22a81ff87f
Fixed get_peer from lua
2014-01-17 19:46:33 +00:00
vysheng
71e5991c59
Fixed load audio
2014-01-17 18:16:35 +04:00
antma
192b82ef95
use rdtsc for seeding prng only at i386 and x86_64 platforms
...
https://github.com/vysheng/tg/issues/8
2014-01-17 16:19:12 +04:00
antma
22c1a41109
improve portability by removing rdtsc calls
...
https://github.com/vysheng/tg/issues/8
2014-01-15 19:29:26 +04:00
vysheng
4b6870f048
Merge branch 'master' of github.com:vysheng/tg
2014-01-15 16:12:13 +04:00
vysheng
06902144fa
strutures.c: fixed bad flags in get chat query
2014-01-15 16:10:52 +04:00
vysheng
e45e0e5f17
Update README.md
2014-01-15 15:04:59 +03:00
vysheng
0c590bcc52
Merge pull request #38 from antma/master
...
fix sending a lot of spaces in version string
2014-01-14 03:37:19 -08:00
antma
ba58659420
fix sending a lot of spaces in version string
2014-01-14 14:46:13 +04:00
vysheng
e209e35f11
restored _GNU_SOURCE for getline in FreeBSD
2014-01-13 16:58:14 +03:00
vysheng
19851f9ef2
Merge pull request #37 from antma/master
...
checks strndup result & enhance configure.ac
2014-01-13 05:57:22 -08:00
antma
6b87e31277
fix some autoscan warnings
2014-01-13 17:28:24 +04:00
antma
c4fd38a894
remove useless #define _GNU_SOURCE from not using asprintf sources
2014-01-13 17:12:39 +04:00
antma
e27a27c4a0
fix #include "config.h" for all source files
2014-01-13 17:05:25 +04:00
antma
dd40e9b36f
don't output backtrace in out of memory case
2014-01-13 16:36:29 +04:00
antma
5de0d75942
add functions tstrndup (auto check return value of strndup calls)
2014-01-13 16:26:48 +04:00
antma
2724878bfc
fix small memory leaks in the function do_send_photo for the cases of invalid, empty or large file
2014-01-13 16:09:33 +04:00
Vysheng
06a26ebc90
Fixed travis.yml
2014-01-12 04:56:36 +04:00
Vysheng
a7a702eb52
Fixed travis.yml
2014-01-12 04:44:47 +04:00
Vysheng
a664edcdfe
Added sample lua script
2014-01-12 04:43:56 +04:00
Vysheng
6b0d354e69
Added partial lua support
2014-01-12 04:43:29 +04:00
Vysheng
4b92fc1c7f
tools.c: deleted unneeded arrays
2014-01-11 20:03:02 +04:00
Vysheng
b10194c0d0
structures.h: added del_use
2014-01-11 20:01:01 +04:00
Vysheng
914490cf20
tools: added more debug
2014-01-11 20:00:31 +04:00
Vysheng
accba9b5e5
binlog.c: fixed tfree len
2014-01-11 03:26:53 +04:00
vysheng
77f56cfd57
Merge branch 'master' of https://github.com/antma/tg
...
Conflicts:
tools.c
2014-01-10 21:16:26 +04:00
vysheng
3c3f1e795b
Fixed warning
2014-01-10 21:13:27 +04:00
antma
286ffe8c72
fix missed inflateEnd call and enhance handling inflate return value
2014-01-10 20:54:47 +04:00
antma
d2460a8a90
enhance portability (replace void* by char*)
...
When using void pointers in calculations, the behaviour is undefined. Arithmetic operations on 'void *' is a GNU C extension, which defines the 'sizeof(void)' to be 1.
2014-01-10 19:04:27 +04:00
vysheng
f06d3c1625
free->tfree. Memory checks, if compiled with -DDEBUG
2014-01-10 18:37:56 +04:00
vysheng
a97603031c
realloc->trealloc
2014-01-10 17:08:12 +04:00
vysheng
ccc76dd982
Fixed CE. Fixed tree.h to use talloc
2014-01-10 17:03:47 +04:00
vysheng
2d89884be9
Merge pull request #34 from antma/master
...
improve code's style modications
2014-01-10 05:00:49 -08:00
antma
52ee21f188
add field limit for sscanf call (fix libc versions older than 2.13-25)
2014-01-10 16:37:07 +04:00
antma
136dbd0093
checking sizeof (void) at the runtime
2014-01-10 16:30:56 +04:00
antma
365ebd3ecd
remove undefined behavior flush (stdin) call
...
http://stackoverflow.com/questions/2979209/using-fflushstdin
2014-01-10 16:21:34 +04:00
antma
20d8954732
replace sprintf call with snprintf for open image command
2014-01-10 16:15:59 +04:00
antma
35f981d519
replace sprintf call with snprintf for downloaded part name
2014-01-10 16:05:39 +04:00
antma
c15579713c
add length modifier to the format for strings in sprintf call
2014-01-10 15:59:48 +04:00
antma
4769197f11
fix small memory leak in running_for_first_time (local variable config_directory)
2014-01-10 15:46:46 +04:00
antma
83af542d50
close /etc/passwd file handle right after evaluating home directory
2014-01-10 15:40:28 +04:00
antma
3795a77618
check return values of strdup and malloc
...
add talloc0 function (malloc and zero fill)
check return values of arithmetic openssl BN_* functions
check return values of BN_bin2bn function
remove useless BN_init calls right after BN_new
fix 2 small memory leaks
2014-01-10 15:32:57 +04:00
Vysheng
de70e4314c
Merge github.com:vysheng/tg
2014-01-02 22:53:58 +04:00
Vysheng
3c629b2263
fixed acks
2014-01-02 22:52:41 +04:00
vysheng
c68c916271
fixed Typo in Readme
2013-12-26 19:08:35 +03:00
vysheng
780320ee5d
Fixed CE
2013-12-25 13:07:10 +04:00