Dmitry Bogatov
1576dc1d13
top_evil_rs: check for all-caps version of ok_to_continue pattern
2019-09-10 17:34:17 +00:00
Dmitry Bogatov
4fbb5fbb25
Make it easier to run src/top_evil_rs.py from git root
...
Currently, `src/top_evil_rs.py' script recursively scans current
directory for Rust sources and print statistics about them.
When run from git root, it also scans target/ directory, which is
useless.
This commit add cludge that checks if script is run from git root
directory, and `chdir' into `src/' before performing actions.
Unprincipled, but convenient.
2019-09-10 17:34:16 +00:00
B. Petersen
e9da21a02e
cargo fmt
2019-09-10 19:14:51 +02:00
B. Petersen
6c4d7ad8cc
do not panic on bad-utf-8
2019-09-10 16:48:54 +02:00
Alexander Krotov
f1c026c5ec
Pass passphrase to dc_pgp_symm_{en,de}crypt as &str
2019-09-10 15:58:42 +02:00
björn petersen
3d61c06ea9
Merge pull request #478 from deltachat/fix477
...
fix crash when msg_raw is None
2019-09-10 15:50:33 +02:00
Alexander Krotov
22c1ee1f55
cargo fmt
2019-09-10 16:29:41 +03:00
Alexander Krotov
971960a242
key.rs: remove unsafe Key.from_binary
2019-09-10 16:29:24 +03:00
Alexander Krotov
69f8973339
test_encryption_decryption: use safe from_slice instead of from_binary
2019-09-10 16:29:24 +03:00
B. Petersen
bf1d9b6d06
fix crash when msg_raw is None
2019-09-10 15:20:38 +02:00
Alexander Krotov
6a2368f83c
Return bool from dc_continue_key_transfer
2019-09-10 15:15:48 +02:00
Alexander Krotov
d0960f7f7f
Merge pull request #483 from link2xt/dc_msg_exists_safe
...
Make dc_msg_exists safe and rusty
2019-09-10 15:15:33 +03:00
Alexander Krotov
e5ad697466
Make dc_msg_exists safe and rusty
2019-09-10 14:21:27 +03:00
Alexander Krotov
188eab5faf
Fix test_encryption_decryption
...
It is broken since 28cae607a4
2019-09-10 12:00:59 +02:00
holger krekel
2b257e3d0d
fix ffi
2019-09-09 19:45:43 +02:00
Alexander Krotov
77c9746be5
Make dc_msg_get_filemime safe
2019-09-09 19:45:43 +02:00
Alexander Krotov
28cae607a4
Pass buffers to pgp.rs as slices
2019-09-09 18:50:47 +02:00
Simon Laux
814281ed7d
fixes #463
2019-09-09 18:44:30 +02:00
holger krekel
5b0c8dd9dd
address @r10s and @flub review comments, and fix some docstrings/test meta docs
2019-09-09 18:07:32 +02:00
holger krekel
650d8c45ec
fix test, and cleanup according profile-image API
2019-09-09 18:07:32 +02:00
holger krekel
383d8980d6
add profile image API to python, tests, Rust fixes/cleanups
2019-09-09 18:07:32 +02:00
Simon Laux
6ea706c646
remove macro
2019-09-09 18:07:32 +02:00
Simon Laux
1ed2af08b8
cargo fmt
2019-09-09 18:07:32 +02:00
Simon Laux
7563a5abe0
remove closure
...
Co-authored-by: @Jikstra
2019-09-09 18:07:32 +02:00
Simon Laux
0a8b187f80
fix remove chat profile img
2019-09-09 18:07:32 +02:00
björn petersen
275aa853f5
Merge pull request #471 from deltachat/fix417
...
fix crash when downloading message
2019-09-09 16:18:50 +02:00
Friedel Ziegelmayer
3614d57f9f
Merge pull request #469 from deltachat/refctor/strencode
...
refactor(strencode): rustify some strencode methods
2019-09-09 11:52:30 +02:00
B. Petersen
1367873949
check bounds before accessing Vec
2019-09-09 01:47:50 +02:00
B. Petersen
d933183e0a
mark safe functions as such
2019-09-09 01:47:50 +02:00
B. Petersen
7e11def527
make code more readable
2019-09-09 00:01:15 +02:00
dignifiedquire
f3e53a05a6
refactor(loginparam): rename dc_loginparam -> login_param
2019-09-08 18:48:57 +02:00
dignifiedquire
dd381a5c1c
refactor(loginparam): simplify and rustify
2019-09-08 18:48:57 +02:00
dignifiedquire
8eee449305
refactor(token): rustify
2019-09-08 18:35:20 +02:00
dignifiedquire
96e02af0da
refactor: rename dc_token to token
2019-09-08 18:35:20 +02:00
dignifiedquire
60fb1478c3
refactor(strencode): rustify some strencode methods
2019-09-08 15:50:28 +02:00
Friedel Ziegelmayer
aa7d0679df
fix(tools): make sure dc_truncate can handle arbitrary utf8 valu… ( #460 )
...
fix(tools): make sure dc_truncate can handle arbitrary utf8 values
2019-09-08 15:23:46 +02:00
dignifiedquire
8e3cc192a5
fix(tools): make sure dc_truncate can handle arbitrary utf8 values
...
also adds proptests to make sure this is upheld
Should close #433
2019-09-08 14:00:04 +02:00
Simon Laux
0f939995d1
fix(job): "invalid job action" check
2019-09-08 13:39:59 +02:00
björn petersen
2e1bc9b14e
Merge pull request #458 from deltachat/fix-unknown
...
fix reading unknown origin
2019-09-08 12:24:51 +02:00
Friedel Ziegelmayer
fd1ac6ab2d
Remove some free() from Mozilla autoconfig ( #457 )
...
Remove some free() from Mozilla autoconfig
2019-09-08 11:53:41 +02:00
Friedel Ziegelmayer
d224924dc8
Change type of function from `const char *' to &str ( #451 )
...
Change type of function from `const char *' to &str
2019-09-08 11:51:16 +02:00
dignifiedquire
00e5ddd6f0
make enum reading from the db more robust
2019-09-08 11:29:40 +02:00
B. Petersen
c603ca0e7a
remove dead code
2019-09-08 07:26:07 +02:00
B. Petersen
d07ef01204
cargo fmt
2019-09-07 23:25:19 +02:00
B. Petersen
d8630b5029
fix reading of unknown/outdated origin
2019-09-07 22:21:38 +02:00
Alexander Krotov
3b397326f8
Store email parts as Rust str's
2019-09-07 20:23:08 +03:00
Alexander Krotov
81cabd08a9
Accept str instead of char* in read_autoconf_file
2019-09-07 20:20:25 +03:00
björn petersen
5663c7dec3
Merge pull request #453 from deltachat/fix-backup
...
Fix backup and housekeeping
2019-09-07 15:38:01 +02:00
björn petersen
06673b2108
Merge pull request #455 from deltachat/fix-msg-loading
...
Fix msg loading
2019-09-07 15:37:38 +02:00
dignifiedquire
6b7498a4b1
fix(contact): fix logic for create or add contact
...
Closes #448
2019-09-07 14:07:56 +02:00