EldoS | Feel safer!

Software components for data protection, secure storage and transfer

POST with string encoding bug

Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.
#33031
Posted: 04/13/2015 11:03:51
by Alfred Robinson (Basic support level)
Joined: 04/13/2015
Posts: 1

Hello!

SecureBlackbox's TElHTTPSClient.Post(string URL, string Content) has a bug with handling UTF8 encoding: it uses Content.Length (UTF16 characters count) as a payload size (which is UTF8-encoded bytes count). So multibyte characters will lead to sending of a broken data.

Cheers,

P.S. https://eldos.eu has not valid certificate - issued for eldos.com. You'd better fix this as well ;)
#33032
Posted: 04/13/2015 11:21:59
by Eugene Mayevski (EldoS Corp.)

Thank you for the report.

The issue has been fixed in the latest build (12.0.269), which is currently on the site. Apparently nobody used that overload, at least with UTF8 data, and the tests don't cover this variant.


Sincerely yours
Eugene Mayevski

Reply

Statistics

Topic viewed 455 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!