Record rebased DM verification and UTF-8 name truncation defect

This commit is contained in:
evgeny committed 2026-10-26 17:07:18 +01:00
1 parent b6588d0594
commit f83e27260d
5 files changed
+84 -2

No files matched your search

+3 -1
View File
@@ -103,7 +103,9 @@ void dm_delete_trampoline(void* arg);
void dm_cancel_pending_history(struct UTUN_INSTANCE* inst, const char* conv);
/* До 200 видимых бесед по last_ts DESC: [{conv_id,peer_node_id,peer_name,last_ts,out_seq,in_seq,generation}].
* buf вмещает JSON и NUL; 0 и *out_len без NUL при успехе, -1 при ошибке. Все вызовы в uasync. */
* buf вмещает JSON и NUL; 0 и *out_len без NUL при успехе, -1 при ошибке. Все вызовы в uasync.
* Известный дефект: имя может быть обрезано внутри UTF-8 в dm_start/load, и результат с кодом0 будет
* некорректным UTF-8 JSON. См. doc/dm_audit_findings.txt, раздел8. */
int dm_list_conversations_json(struct UTUN_INSTANCE* inst, char* buf, size_t buf_size, size_t* out_len);
/* Сообщения беседы в JSON: расшифрованное содержимое, статусы доставки и медиа.