This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients erlendaasland, serhiy.storchaka
Date 2021-08-04.09:01:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1628067695.34.0.587371889844.issue44822@roundup.psfhosted.org>
In-reply-to
Content
The difference between specifying negative and non-negative third argument of sqlite3_result_text() is that in the latter case the result can contain embedded NUL characters.

Could you please add a test for string containing embedded NUL?

Letting SQLite compute string length would work incorrect in case of embedded NULs, so I think that we should raise explicit error if sz > INT_MAX.
History
Date User Action Args
2021-08-04 09:01:35serhiy.storchakasetrecipients: + serhiy.storchaka, erlendaasland
2021-08-04 09:01:35serhiy.storchakasetmessageid: <1628067695.34.0.587371889844.issue44822@roundup.psfhosted.org>
2021-08-04 09:01:35serhiy.storchakalinkissue44822 messages
2021-08-04 09:01:35serhiy.storchakacreate