Dear guest !

Welcome to Team Developer Community Forum. A place created by the community, for the community !

This is a resource for Q & A and discussion about everything related to OpenText Gupta Team Developer, SqlBase, TD Mobile and Report Builder.
It is the alternative for the OpenText customer forums which can only be accessed with an active support contract.

Please register your account now. It will make you part of the active community.
Also, this guest message will not be displayed for registered users.

As a bonus, registered users have access to the 'Newsgroups' subforum, holding 10 years worth of posts from the good old Gupta newsgroups.

Having an account gives you the opportunity to ask questions and get help from others.
We hope this free gathering will help you and the community getting forward!

Best regards,
The forum site admins.

TD-23400: [All TD versions] SalUncompress fails on large buffers

Post found bugs and possible workarounds.
Post Reply
Dave Rabelink
Founder/Site Admin
Netherlands
Posts: 234
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands
Contact:

TD-23400: [All TD versions] SalUncompress fails on large buffers

Post by Dave Rabelink » 10 Mar 2017, 08:16

When large files are compressed using SalStrCompress the result can not be uncompressed using SalStrUncompress.

Testcase:
Having 2 files containing ANSI text.
One is small and the other large.

The ANSI text is first loaded from disk to memory
Then the ANSI text is converted to UNICODE
Then the UNICODE string is compressed.

This compressed string can be uncompressed when the smaller file is used.
The larger file gives a FALSE on SalStrUncompress.

So, is there a hard limit on the buffer size for SalStrCompress / Uncompress?

Could there be a 64k limitation?
Or is it caused by the buffer being UNICODE text?

PLease check why this fails.

Be sure the test files are correctly loaded from source.
See that the UNICODE string for the large file can not be uncompressed.

The source is in TD61 format so can be tested from there.
I have seen the issue on all TD versions.

Extra info

Tested the limit:

The limit is 95,367431640625 Mb
This is in bytes: 100.000.000

That seems a hardcoded limit.

To my knowledge, the size value in the compression header can contain up to 2.1 Gb
Regards,
Dave Rabelink

Image
Join & participate on Team Developer Tips & Tricks Wiki
Download samples from TD Sample Vault
Videos on TDWiki YouTube Channel

Dave Rabelink
Founder/Site Admin
Netherlands
Posts: 234
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands
Contact:

Re: TD-23400: [All TD versions] SalUncompress fails on large buffers

Post by Dave Rabelink » 10 Mar 2017, 08:18

This defect has been registered as

Ticket # 2963024:
TD-23400: SalUncompress fails on large buffers


It is not yet fixed. All TD versions have this issue (incl TD 7.0 UPD1).
Regards,
Dave Rabelink

Image
Join & participate on Team Developer Tips & Tricks Wiki
Download samples from TD Sample Vault
Videos on TDWiki YouTube Channel

Post Reply

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 1 guest