Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application crash on OctetString response. #2

Open
mvystrcil opened this issue Jan 18, 2022 · 2 comments
Open

Application crash on OctetString response. #2

mvystrcil opened this issue Jan 18, 2022 · 2 comments

Comments

@mvystrcil
Copy link

On reception of OctetString in response application crashes.

Easily reproducible - walk table ifTable from mib-2. Once response for ifPhysAddress is received, error *** buffer overflow detected ***: terminated is raised.

Not sure if helpful, but if content of octet string in response is printable - "lo" for example, response is processed. In case response is MAC address (hex numbers), crash happens.

@mvystrcil
Copy link
Author

After some debugging I found the error is in smi library.
Call in agent.cpp:614 fails.

Variables

  • myvalue - SMI_BASETYPE_OCTETSTRING "abcabc"
  • type - SMI_BASETYPE_OCTETSTRING / SMI_DECL_TEXTUALCONVENTION / format: 1x: / name "PhysAddress"

@mvystrcil
Copy link
Author

Ok, asking smi library to format string as 1x: is root cause of this problem, libsmi v0.5.0 used.

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

No branches or pull requests

1 participant