mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
...
This commit is contained in:
parent
c8a46e1c09
commit
a8d1f86f8b
|
@ -124,7 +124,7 @@ START_TEST(test_m_addfriend)
|
||||||
int bad_len = strlen(bad_data);
|
int bad_len = strlen(bad_data);
|
||||||
int really_bad_len = (MAX_DATA_SIZE - crypto_box_PUBLICKEYBYTES
|
int really_bad_len = (MAX_DATA_SIZE - crypto_box_PUBLICKEYBYTES
|
||||||
- crypto_box_NONCEBYTES - crypto_box_BOXZEROBYTES
|
- crypto_box_NONCEBYTES - crypto_box_BOXZEROBYTES
|
||||||
*/ + crypto_box_ZEROBYTES + 100);
|
+ crypto_box_ZEROBYTES + 100); */
|
||||||
/* TODO: Update this properly to latest master
|
/* TODO: Update this properly to latest master
|
||||||
if(m_addfriend(m, (uint8_t *)friend_id, (uint8_t *)good_data, really_bad_len) != FAERR_TOOLONG)
|
if(m_addfriend(m, (uint8_t *)friend_id, (uint8_t *)good_data, really_bad_len) != FAERR_TOOLONG)
|
||||||
ck_abort_msg("m_addfriend did NOT catch the following length: %d\n", really_bad_len);
|
ck_abort_msg("m_addfriend did NOT catch the following length: %d\n", really_bad_len);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user