# 3.7.0 Regression in HostAttributeList::getString

**URL:** <https://forums.steinberg.net/t/3-7-0-regression-in-hostattributelist-getstring/202085>\
**Category:** VST 3 SDK\
**Tags:** vst3sdk-3-7\
**Created:** [November 18, 2020, 8:05pm UTC](https://forums.steinberg.net/t/3-7-0-regression-in-hostattributelist-getstring/202085 "2020-11-18T20:05:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nborthwick](https://avatars.discourse-cdn.com/v4/letter/n/43a26b/32.png) [@nborthwick](https://forums.steinberg.net/u/nborthwick)\
**Post date:** [November 18, 2020, 8:05pm UTC](https://forums.steinberg.net/t/3-7-0-regression-in-hostattributelist-getstring/202085/1 "2020-11-18T20:05:01Z")

</div>

Hi folks,

There is a string copy bug in HostAttributeList::getString. The bug also exists in 3.7.1 that was recently released.  
This was causing many plugins such as Console One, Waves CLA Mix Hub or iZotope Neutron to display garbage in channel names when they query for attributes in response to Vst::ChannelContext::IInfoListener. Any DAW using Vst::ChannelContext::IInfoListener::setChannelContextInfos will break due to this.

I’ve submitted a pull request for the same.

> <https://github.com/steinbergmedia/vst3_public_sdk/pull/23/files>
>
> In HostAttributeList::getString stringSize should be multiplied by sizeof TChar …because it is copying bytes not characters.
> This was causing many plugins to display garbage in channel names when they query for attributes in response to Vst::ChannelContext::IInfoListener

---

<div class="post-metadata">

**Author:** ![Yvan](https://dub1.discourse-cdn.com/steinberg/user_avatar/forums.steinberg.net/yvan/32/51177_2.png) [@Yvan](https://forums.steinberg.net/u/Yvan)\
**Post date:** [November 19, 2020, 6:11pm UTC](https://forums.steinberg.net/t/3-7-0-regression-in-hostattributelist-getstring/202085/2 "2020-11-19T18:11:44Z")

</div>

thanks, added to next update

---

<div class="post-metadata">

**Author:** ![nborthwick](https://avatars.discourse-cdn.com/v4/letter/n/43a26b/32.png) [@nborthwick](https://forums.steinberg.net/u/nborthwick)\
**Post date:** [November 19, 2020, 7:22pm UTC](https://forums.steinberg.net/t/3-7-0-regression-in-hostattributelist-getstring/202085/3 "2020-11-19T19:22:57Z")

</div>

Thanks Yvan
