vysheng
716181f290
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
2c05a3c65a
fix sending a lot of spaces in version string
2014-01-14 14:46:13 +04:00
vysheng
f06c96fa73
restored _GNU_SOURCE for getline in FreeBSD
2014-01-13 16:58:14 +03:00
vysheng
d2fe51d0ef
Merge pull request #37 from antma/master
...
checks strndup result & enhance configure.ac
2014-01-13 05:57:22 -08:00
antma
fdaca01c59
fix some autoscan warnings
2014-01-13 17:28:24 +04:00
antma
622dec3e70
remove useless #define _GNU_SOURCE from not using asprintf sources
2014-01-13 17:12:39 +04:00
antma
eb2bc7f0ff
fix #include "config.h" for all source files
2014-01-13 17:05:25 +04:00
antma
850c5f8eb5
don't output backtrace in out of memory case
2014-01-13 16:36:29 +04:00
antma
4ccacb146c
add functions tstrndup (auto check return value of strndup calls)
2014-01-13 16:26:48 +04:00
antma
46163db14d
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
39ed32ec57
Fixed travis.yml
2014-01-12 04:56:36 +04:00
Vysheng
c23d34ca14
Fixed travis.yml
2014-01-12 04:44:47 +04:00
Vysheng
497a45f04d
Added sample lua script
2014-01-12 04:43:56 +04:00
Vysheng
90dd95392f
Added partial lua support
2014-01-12 04:43:29 +04:00
Vysheng
3714035357
tools.c: deleted unneeded arrays
2014-01-11 20:03:02 +04:00
Vysheng
4d8dc59e87
structures.h: added del_use
2014-01-11 20:01:01 +04:00
Vysheng
8c3953f84f
tools: added more debug
2014-01-11 20:00:31 +04:00
Vysheng
e22eff09dd
binlog.c: fixed tfree len
2014-01-11 03:26:53 +04:00
vysheng
0a9532dc48
Merge branch 'master' of https://github.com/antma/tg
...
Conflicts:
tools.c
2014-01-10 21:16:26 +04:00
vysheng
4a9eedba81
Fixed warning
2014-01-10 21:13:27 +04:00
antma
afdcd9b7df
fix missed inflateEnd call and enhance handling inflate return value
2014-01-10 20:54:47 +04:00
antma
3ec80b7ac7
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
feed5229b5
free->tfree. Memory checks, if compiled with -DDEBUG
2014-01-10 18:37:56 +04:00
vysheng
692c9274ce
realloc->trealloc
2014-01-10 17:08:12 +04:00
vysheng
fad27bbd39
Fixed CE. Fixed tree.h to use talloc
2014-01-10 17:03:47 +04:00
vysheng
13e8996028
Merge pull request #34 from antma/master
...
improve code's style modications
2014-01-10 05:00:49 -08:00
antma
f2f4153d00
add field limit for sscanf call (fix libc versions older than 2.13-25)
2014-01-10 16:37:07 +04:00
antma
c9c8daac45
checking sizeof (void) at the runtime
2014-01-10 16:30:56 +04:00
antma
e8943b5aa1
remove undefined behavior flush (stdin) call
...
http://stackoverflow.com/questions/2979209/using-fflushstdin
2014-01-10 16:21:34 +04:00
antma
70441cfcdf
replace sprintf call with snprintf for open image command
2014-01-10 16:15:59 +04:00
antma
206fa43232
replace sprintf call with snprintf for downloaded part name
2014-01-10 16:05:39 +04:00
antma
e1c750ad7f
add length modifier to the format for strings in sprintf call
2014-01-10 15:59:48 +04:00
antma
933a65c335
fix small memory leak in running_for_first_time (local variable config_directory)
2014-01-10 15:46:46 +04:00
antma
35923482bc
close /etc/passwd file handle right after evaluating home directory
2014-01-10 15:40:28 +04:00
antma
bb24fba98f
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
e416d5cf7e
Merge github.com:vysheng/tg
2014-01-02 22:53:58 +04:00
Vysheng
2cfe58c1a9
fixed acks
2014-01-02 22:52:41 +04:00
vysheng
567afd1aa5
fixed Typo in Readme
2013-12-26 19:08:35 +03:00
vysheng
df3dc01306
Fixed CE
2013-12-25 13:07:10 +04:00
vysheng
cb29ce4523
Some other things changed to secure_random
2013-12-25 12:56:46 +04:00
vysheng
5ea4683d16
Fixed secure random.
2013-12-25 12:35:13 +04:00
vysheng
5cde89b5c8
do_rand () renamed to secure_random ()
2013-12-25 04:44:36 +04:00
vysheng
f8793376a5
Fixed random on sensible parts (generation auth_key, session_id and keys for secret chats)
2013-12-25 03:42:05 +04:00
vysheng
820ccce220
Fixed autocompete in send_document
2013-12-24 15:58:31 +04:00
vysheng
73b17ee19d
Added more checks on g_a and g
2013-12-24 15:29:18 +04:00
vysheng
3421589432
Support for layer 11
2013-12-24 04:57:01 +04:00
vysheng
98a6fcb821
Update README.md
2013-12-24 00:22:44 +03:00
Vysheng
0396571877
DH: added check for bad prime in encr chats
2013-12-23 15:13:43 +04:00
Vysheng
b13434e378
Fixed check g_a in encr chats
2013-12-23 15:10:53 +04:00
Vysheng
64a804ffc5
Merge github.com:vysheng/tg
2013-12-23 14:46:16 +04:00