lextudio / sharpsnmplib

Sharp SNMP Library- Open Source SNMP for .NET
https://sharpsnmp.com
MIT License
356 stars 152 forks source link

Agent-side bug in ByteTool.GetRawBytes #221

Closed lextudio-support closed 4 hours ago

lextudio-support commented 4 hours ago

To reproduce the issue : set an Integer32 to a value between -128 and -256 in your agent. Fetch the value.

Fix : at the end of the method, the appropriate code is

        // if sign bit is not correct, add an extra byte
        if ((list[list.Count - 1] & 0x80) != sign)
        {
            list.Add(flag);
        }

Original Reported Date: 2011-05-18T11:38:05.8-07:00 Planned For Release: HoneyCell Refresh (6.1.1)

Original CodePlex ID: 7217

lextudio-support commented 4 hours ago

Copied from CodePlex without authors:

Thanks for the report. Nice catch. I will merge it to the code base this weekend.

Original Posted Date: 2011-05-19T05:32:58.82-07:00

lextudio-support commented 4 hours ago

Copied from CodePlex without authors:

The fix is included in both 6.1 and default branches. Will release a new build for 6.* users in the coming weeks.

Original Posted Date: 2011-05-21T02:06:19.99-07:00

lextudio-support commented 4 hours ago

Just released 6.1.1 that contains this fix: [release:55626]

Original Closed Date: 2011-05-21T02:40:04.02-07:00