ibm-messaging / mq-golang

Calling IBM MQ from Go applications
Apache License 2.0
168 stars 60 forks source link

Method Get - panic "runtime error: index out of range" if incorrect MsgId #111

Closed romapres2010 closed 5 years ago

romapres2010 commented 5 years ago

If I try to call method Get with incorrect MsgId, for example to byte less "414d5120514d3420202020202020202090b7355d218920" instead of "414d5120514d3420202020202020202090b7355d21892013" I received panic "runtime error: index out of range"

ibmmqmet commented 5 years ago

added some validation for parameters in latest push

romapres2010 commented 5 years ago

it seems ok