-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ToTCString() runtime error: index out of range [708] with length 708 #2
Comments
Hi @alexandre-lim , Thank you for reporting this well described issue, we're look into as soon as possible. Rémi |
Hi @alexandre-lim, I wanted to be sure the vendor list is ok, I changed your script to download the vendor list instead using local data, no more errors with valid consent string. Regards,
|
Hi @RemiSirdata Thank you for looking into the issue. The JSON from the vendor list was okay; I have a command that takes the content from https://vendor-list.consensu.org/v2/vendor-list.json and pastes it into a JSON file. But I relaunched the command, which now works with the recently updated content 🤔 It seems the earlier update created this bug. It's probably an edge case, but it would be very helpful if you have time to take a deeper look into it 👍 Thanks! Best Regards, |
Thank you for reporting the issue. After looking deeper, there was a problem with the bit allocation related to the range sections and bitfield sections while encoding the TC String. It is not directly related to the GVL but depending of the vendor list (and so the The issue has been fixed and a release has been published here : https://github.com/SirDataFR/iabtcfv2/releases/tag/v1.2.0 Regards, |
Hi @tla-sirdata Thank you for the explanation and the fast fix! 🙏 |
Hello, thank you for the library! I'm having an error when calling the function
ToTCString()
. The error isHere are some screenshots where the issue happen when going through debugging:
iabtcfv2@v1.1.3/segment_core_string.go
abtcfv2@v1.1.3/bits.go
b.bytes
length is 707 butbyteIndex
value is 708I made a codesandbox which reproduce this error: https://codesandbox.io/p/sandbox/stupefied-rumple-2mjqqk
The
vendor
variable comes from https://vendor-list.consensu.org/v2/vendor-list.json. I had an old version of the vendor-list.json which worked fine and this error appeared after trying to use the latest versionThe text was updated successfully, but these errors were encountered: