You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a function with two string arguments is generated, the Objective-C binding doesn't pass the second string correctly if the first string argument is longer than 11 characters.
Also, fixes the memory allocation bug - misuse of mem_ensure that caused
to allocate 72 bytes of memory to carry 16 bytes of data for instance.
Fixesgolang/go#11842.
Change-Id: I21798be2ec7adfb68cc2897bb46a924f05f3478c
Reviewed-on: https://go-review.googlesource.com/12577
Reviewed-by: David Crawshaw <crawshaw@golang.org>
imWildCat
pushed a commit
to imWildCat/go-mobile
that referenced
this issue
Apr 11, 2021
Also, fixes the memory allocation bug - misuse of mem_ensure that caused
to allocate 72 bytes of memory to carry 16 bytes of data for instance.
Fixesgolang/go#11842.
Change-Id: I21798be2ec7adfb68cc2897bb46a924f05f3478c
Reviewed-on: https://go-review.googlesource.com/12577
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When a function with two string arguments is generated, the Objective-C binding doesn't pass the second string correctly if the first string argument is longer than 11 characters.
For example, with the function:
If it is called with an instance of
ExampleStruct
the output is as expected:
But if the
trytwotests
string is made longer, the output is incorrect:Go version:
The text was updated successfully, but these errors were encountered: