Open rlaager opened 8 years ago
@AdrianSimionov do you have any ideas here? Note that one ends with all zeros, and the other doesn't. Could this be some buffer not being zeroed before use?
The problem is:
SnmpMibObject enterprises.1.2.3.4 String "aaaaaaaaabbbaaaaaaaaaaaaaabcdefghijklmnoprstuvwzabcdefghijklmnoprstuvwyzabcdefghijklmnoprstxxxxxxxaaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
If you remove exactly one character, the test will pass. I think someone put just one extra character to make this test fail on purpose.
The GenericTLVs being different is just a side effect as the tool does not recognise anymore the format and translates everything to GenericTLVs.
The off-by-one thing makes me even more concerned that we have a buffer problem somewhere. We need to find and fix this one.
I will look more into it, I have the feeling there is a buffer overflow somewhere. It might as well be in net-snmp library.
The docsis20_stresstest is the only test failing for me at the moment.
Debugging with this:
I get this: