Td: Json buffer overflow

Created on 1 Nov 2018  路  3Comments  路  Source: tdlib/td

Error occurs when receiving messages from different channels. (CGO)

-telegram_1         | [ 1][t 0][1541074977.281727791][JsonBuilder.h:746][&jb.string_builder().is_error()] Json buffer overflow
parser-telegram_1         | [ 0][t 0][1541074977.281904697][ClientJson.cpp:41][&!str.empty() && str.back() == '}']
-telegram_1         | SIGABRT: abort
-telegram_1         | PC=0x7fc28e2cce97 m=18 sigcode=18446744073709551610
-telegram_1         | 
-telegram_1         | goroutine 0 [idle]:
-telegram_1         | runtime: unknown pc 0x7fc28e2cce97
-telegram_1         | stack: frame={sp:0x7fc23e7fb8b0, fp:0x0} stack=[0x7fc23dffc1d0,0x7fc23e7fbdd0)
-telegram_1         | 00007fc23e7fb7b0:  0000000000000000  8e241e8c8beab400 

Most helpful comment

Fixed in TDLib 1.4.0. The limit is completely removed.

All 3 comments

Current TDLib JSON interface has limited to responses of less than 500 kB. This is fixed in our private version and the restriction will be completely removed in TDLib 1.4.0. For now as a workaround, you can decrease limit to getChatHistory to receive less messages per request. This will not affect performance of message receiving in any way.

JFYI: Also got this error for getLanguagePackStrings with language_pack_id="ru" and empty keys

Fixed in TDLib 1.4.0. The limit is completely removed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sh-a-v picture sh-a-v  路  3Comments

hatami57 picture hatami57  路  4Comments

pishnok picture pishnok  路  3Comments

hameda169 picture hameda169  路  3Comments

omkarnathsingh picture omkarnathsingh  路  4Comments