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
vysheng
874aace355
Some other things changed to secure_random
2013-12-25 12:56:46 +04:00
vysheng
484e1c30e8
Fixed secure random.
2013-12-25 12:35:13 +04:00
vysheng
7a5fa39f84
do_rand () renamed to secure_random ()
2013-12-25 04:44:36 +04:00
vysheng
b2ba81e761
Fixed random on sensible parts (generation auth_key, session_id and keys for secret chats)
2013-12-25 03:42:05 +04:00
vysheng
d94786957b
Fixed autocompete in send_document
2013-12-24 15:58:31 +04:00
vysheng
c496266598
Added more checks on g_a and g
2013-12-24 15:29:18 +04:00
vysheng
f11ae1983f
Support for layer 11
2013-12-24 04:57:01 +04:00
vysheng
381c9b3247
Update README.md
2013-12-24 00:22:44 +03:00
Vysheng
dbffe269fa
DH: added check for bad prime in encr chats
2013-12-23 15:13:43 +04:00
Vysheng
2ddd7a1d71
Fixed check g_a in encr chats
2013-12-23 15:10:53 +04:00
Vysheng
efc7673ac8
Merge github.com:vysheng/tg
2013-12-23 14:46:16 +04:00