Page 1 of 1

YAJL_GET_STRING maximum length

Posted: Thu Oct 17, 2024 1:52 pm
by brianjgarland
In the past we encountered a problem with a string over 65535 characters long because that is the maximum return parameter size for YAJL_GET_STRING.

A developer fudged a copy of YAJLR4 to return the pointer (str) instead of %STR(str). This of course resulted in a non-compatible version that got left behind as the YAJLR4 project was updated. I want to bring this copy current.

I didn't see it in the change log but I am wondering if the 65535 limit was removed in YAJLR4 someplace that we missed.

If this limitation still exists, my plan is to get the latest and add a backward compatible change to allow larger strings. If I do that would you like to receive the update so it can be made in the base proejct?

Re: YAJL_GET_STRING maximum length

Posted: Thu Oct 17, 2024 4:19 pm
by Scott Klement
YAJL_GET_STRING_BUF has existed in YAJLR4 for many, many years to allow larger sizes to be returned.

Re: YAJL_GET_STRING maximum length

Posted: Thu Oct 17, 2024 7:11 pm
by brianjgarland
Thanks Scott.

We've been using it longer than it existed because the clone that was created didn't have it.

I do see it in newer versions so we should be good to go.