Skip to content

Conversation

@andrewkirillov-ibm
Copy link
Contributor

Please ensure all items are complete before opening.

What

The ibmmq.to_string() is updated to strip NULL terminators.

How

Before doing decoding of bytes to string, a search is done for NULL. If found, the code decodes only the number of bytes up to the NULL byte.

Testing

Tested on artificially crafted bytes array and on real data coming from queue manager

Issues

Resolves the issue #10

@ibmmqmet ibmmqmet merged commit 6a49d0b into ibm-messaging:main Nov 6, 2025
@andrewkirillov-ibm andrewkirillov-ibm deleted the fix_to_string branch November 8, 2025 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants